Loading pkgs/by-name/ni/nix-your-shell/package.nix +12 −3 Original line number Diff line number Diff line Loading @@ -3,6 +3,8 @@ rustPlatform, fetchFromGitHub, nix-update-script, runCommand, nix-your-shell, }: rustPlatform.buildRustPackage rec { pname = "nix-your-shell"; Loading @@ -11,13 +13,22 @@ rustPlatform.buildRustPackage rec { src = fetchFromGitHub { owner = "MercuryTechnologies"; repo = "nix-your-shell"; rev = "v${version}"; tag = "v${version}"; hash = "sha256-FjGjLq/4qeZz9foA7pfz1hiXvsdmbnzB3BpiTESLE1c="; }; useFetchCargoVendor = true; cargoHash = "sha256-zQpK13iudyWDZbpAN8zm9kKmz8qy3yt8JxT4lwq4YF0="; passthru = { generate-config = shell: runCommand "nix-your-shell-config" { } '' ${lib.getExe nix-your-shell} ${lib.escapeShellArg shell} >> "$out" ''; updateScript = nix-update-script { }; }; meta = { mainProgram = "nix-your-shell"; description = "`nix` and `nix-shell` wrapper for shells other than `bash`"; Loading @@ -26,6 +37,4 @@ rustPlatform.buildRustPackage rec { license = [ lib.licenses.mit ]; maintainers = with lib.maintainers; [ _9999years ]; }; passthru.updateScript = nix-update-script { }; } Loading
pkgs/by-name/ni/nix-your-shell/package.nix +12 −3 Original line number Diff line number Diff line Loading @@ -3,6 +3,8 @@ rustPlatform, fetchFromGitHub, nix-update-script, runCommand, nix-your-shell, }: rustPlatform.buildRustPackage rec { pname = "nix-your-shell"; Loading @@ -11,13 +13,22 @@ rustPlatform.buildRustPackage rec { src = fetchFromGitHub { owner = "MercuryTechnologies"; repo = "nix-your-shell"; rev = "v${version}"; tag = "v${version}"; hash = "sha256-FjGjLq/4qeZz9foA7pfz1hiXvsdmbnzB3BpiTESLE1c="; }; useFetchCargoVendor = true; cargoHash = "sha256-zQpK13iudyWDZbpAN8zm9kKmz8qy3yt8JxT4lwq4YF0="; passthru = { generate-config = shell: runCommand "nix-your-shell-config" { } '' ${lib.getExe nix-your-shell} ${lib.escapeShellArg shell} >> "$out" ''; updateScript = nix-update-script { }; }; meta = { mainProgram = "nix-your-shell"; description = "`nix` and `nix-shell` wrapper for shells other than `bash`"; Loading @@ -26,6 +37,4 @@ rustPlatform.buildRustPackage rec { license = [ lib.licenses.mit ]; maintainers = with lib.maintainers; [ _9999years ]; }; passthru.updateScript = nix-update-script { }; }