nix flake update
This commit is contained in:
		
							parent
							
								
									d9171fe68f
								
							
						
					
					
						commit
						2205cff994
					
				
					 15 changed files with 50 additions and 51 deletions
				
			
		
							
								
								
									
										6
									
								
								rust/flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								rust/flake.lock
									
										
									
										generated
									
									
									
								
							| 
						 | 
				
			
			@ -6,11 +6,11 @@
 | 
			
		|||
        "nixpkgs": "nixpkgs"
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1659267309,
 | 
			
		||||
        "narHash": "sha256-yqjVIIjt9TDwgmM4rDVzRbKIKt8/qnOfm4HbIcWAGt0=",
 | 
			
		||||
        "lastModified": 1659267324,
 | 
			
		||||
        "narHash": "sha256-4tw7i8eWEREPi8PXjyeiOYpJxlNd2dbvbPSFEX3ercE=",
 | 
			
		||||
        "owner": "the-nix-way",
 | 
			
		||||
        "repo": "dev-templates",
 | 
			
		||||
        "rev": "27aff4187bcd95ff63a0cd4b430c769106366a6d",
 | 
			
		||||
        "rev": "d9171fe68fb0f631a74137a0318fcfb0af0e7fb1",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,7 +13,10 @@
 | 
			
		|||
        overlays = [ (import rust-overlay) ];
 | 
			
		||||
 | 
			
		||||
        pkgs = import nixpkgs { inherit system overlays; };
 | 
			
		||||
        inherit (pkgs) rust-bin;
 | 
			
		||||
 | 
			
		||||
        inherit (pkgs) mkShell rust-bin;
 | 
			
		||||
        inherit (pkgs.lib) optionals;
 | 
			
		||||
        inherit (pkgs.stdenv) isLinux;
 | 
			
		||||
 | 
			
		||||
        rust = if builtins.pathExists ./rust-toolchain.toml then
 | 
			
		||||
          rust-bin.fromRustupToolchainFile ./rust-toolchain.toml
 | 
			
		||||
| 
						 | 
				
			
			@ -22,19 +25,15 @@
 | 
			
		|||
        else
 | 
			
		||||
          rust-bin.stable.latest.default;
 | 
			
		||||
 | 
			
		||||
        helpers = with pkgs; [ openssl pkgconfig ];
 | 
			
		||||
 | 
			
		||||
        inherit (pkgs) mkShell;
 | 
			
		||||
        inherit (pkgs.lib) optionals;
 | 
			
		||||
        inherit (pkgs.stdenv) isDarwin;
 | 
			
		||||
        deps = with pkgs; [ openssl pkgconfig ];
 | 
			
		||||
        rustTools = with pkgs;
 | 
			
		||||
          [ cargo-profiler rust-analyzer ] ++ optionals isLinux (with pkgs; [ cargo-watch ]);
 | 
			
		||||
      in {
 | 
			
		||||
        packages.default = rust;
 | 
			
		||||
 | 
			
		||||
        devShells = {
 | 
			
		||||
          default = mkShell {
 | 
			
		||||
            nativeBuildInputs = [ rust ];
 | 
			
		||||
 | 
			
		||||
            buildInputs = helpers;
 | 
			
		||||
            nativeBuildInputs = [ rust ] ++ deps ++ rustTools;
 | 
			
		||||
 | 
			
		||||
            shellHook = ''
 | 
			
		||||
              ${rust}/bin/cargo --version
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue