Compare commits
	
		
			No commits in common. "b850b164f5a466e22fcb645de51d7d969f3a7dce" and "f32764b652eec98c7055a127621c360d1afb2b1c" have entirely different histories.
		
	
	
		
			b850b164f5
			...
			f32764b652
		
	
		
| @ -8,7 +8,6 @@ let | |||||||
|   imports = [ |   imports = [ | ||||||
|     ./shell.nix |     ./shell.nix | ||||||
|     ./languages/python.nix |     ./languages/python.nix | ||||||
|     ./languages/rust.nix |  | ||||||
|     ./utilities/cuda.nix |     ./utilities/cuda.nix | ||||||
|     ./utilities/jupyter.nix |     ./utilities/jupyter.nix | ||||||
|   ]; |   ]; | ||||||
|  | |||||||
| @ -1,34 +0,0 @@ | |||||||
| { |  | ||||||
|   pkgs, |  | ||||||
|   lib, |  | ||||||
|   config, |  | ||||||
|   ... |  | ||||||
| }: |  | ||||||
| 
 |  | ||||||
| with lib; |  | ||||||
| let |  | ||||||
|   rustPackage = pkgs.rustc; |  | ||||||
| in |  | ||||||
| { |  | ||||||
|   options.rust = { |  | ||||||
|     enable = mkEnableOption "Rust"; |  | ||||||
|     # TODO: Add option to specify toolchain file |  | ||||||
|     # See https://ayats.org/blog/nix-rustup |  | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
|   config = mkIf config.rust.enable { |  | ||||||
|     packages = [ |  | ||||||
|       bacon |  | ||||||
|       evcxr |  | ||||||
|       cargo |  | ||||||
| 
 |  | ||||||
|       rustPackage |  | ||||||
| 
 |  | ||||||
|       # TODO: Might be needed for bindgen |  | ||||||
|       # rustPlatform.bindgenHook |  | ||||||
|       # pkg-config |  | ||||||
|     ]; |  | ||||||
| 
 |  | ||||||
|     # env.RUST_SRC_PATH = "${rustPackage}/lib/rustlib/src/rust/library"; |  | ||||||
|   }; |  | ||||||
| } |  | ||||||
| @ -17,16 +17,16 @@ in | |||||||
|   config = mkIf cfg.enable { |   config = mkIf cfg.enable { | ||||||
|     # Development packages |     # Development packages | ||||||
|     home.packages = with pkgs; [ |     home.packages = with pkgs; [ | ||||||
|       # rustup |       rustup | ||||||
|       # rustc |       # rustc | ||||||
|       # cargo |       # cargo | ||||||
|       # gcc |       gcc | ||||||
|       # lldb |       lldb | ||||||
|       # bacon |       bacon | ||||||
|       # rust-analyzer |       # rust-analyzer | ||||||
|       # rustfmt |       # rustfmt | ||||||
|       # clippy |       # clippy | ||||||
|       # evcxr |       evcxr | ||||||
|     ]; |     ]; | ||||||
| 
 | 
 | ||||||
|     # VSCode configuration |     # VSCode configuration | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user