34 lines
		
	
	
	
		
			705 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
	
		
			705 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  inputs = {
 | 
						|
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
 | 
						|
    flake-utils.url = "github:numtide/flake-utils";
 | 
						|
  };
 | 
						|
 | 
						|
  outputs =
 | 
						|
    { nixpkgs
 | 
						|
    , flake-utils
 | 
						|
    , ...
 | 
						|
    }:
 | 
						|
    flake-utils.lib.eachDefaultSystem (system:
 | 
						|
    let
 | 
						|
      pkgs = import nixpkgs {
 | 
						|
        inherit system;
 | 
						|
      };
 | 
						|
    in
 | 
						|
    {
 | 
						|
      devShells.default = pkgs.mkShell {
 | 
						|
        name = "immich-tools";
 | 
						|
        buildInputs = with pkgs; [
 | 
						|
          cargo
 | 
						|
          cargo-machete
 | 
						|
          cargo-release
 | 
						|
          cargo-sort
 | 
						|
          openssl
 | 
						|
          pkg-config
 | 
						|
        ] ++ lib.optionals stdenv.isDarwin [
 | 
						|
          libiconv
 | 
						|
          darwin.apple_sdk.frameworks.SystemConfiguration
 | 
						|
        ];
 | 
						|
      };
 | 
						|
    });
 | 
						|
}
 |