mirror of
				https://github.com/nmasur/dotfiles
				synced 2025-11-04 07:03:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			748 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			748 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  description = "Basic Rust project";
 | 
						|
  inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
 | 
						|
  outputs =
 | 
						|
    { self, nixpkgs }:
 | 
						|
    let
 | 
						|
      forAllSystems = nixpkgs.lib.genAttrs [
 | 
						|
        "x86_64-linux"
 | 
						|
        "x86_64-darwin"
 | 
						|
        "aarch64-linux"
 | 
						|
        "aarch64-darwin"
 | 
						|
      ];
 | 
						|
    in
 | 
						|
    {
 | 
						|
      devShells = forAllSystems (
 | 
						|
        system:
 | 
						|
        let
 | 
						|
          pkgs = import nixpkgs { inherit system; };
 | 
						|
        in
 | 
						|
        {
 | 
						|
          default = pkgs.mkShell {
 | 
						|
            buildInputs = with pkgs; [
 | 
						|
              gcc
 | 
						|
              rustc
 | 
						|
              cargo
 | 
						|
              cargo-watch
 | 
						|
              clippy
 | 
						|
              rustfmt
 | 
						|
              pkg-config
 | 
						|
              openssl
 | 
						|
            ];
 | 
						|
          };
 | 
						|
        }
 | 
						|
      );
 | 
						|
    };
 | 
						|
}
 |