Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

40 lines
1.0 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
runCommand,
nix-your-shell,
}:
rustPlatform.buildRustPackage rec {
pname = "nix-your-shell";
version = "1.4.6";
src = fetchFromGitHub {
owner = "MercuryTechnologies";
repo = "nix-your-shell";
tag = "v${version}";
hash = "sha256-FjGjLq/4qeZz9foA7pfz1hiXvsdmbnzB3BpiTESLE1c=";
};
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`";
homepage = "https://github.com/MercuryTechnologies/nix-your-shell";
changelog = "https://github.com/MercuryTechnologies/nix-your-shell/releases/tags/v${version}";
license = [ lib.licenses.mit ];
maintainers = with lib.maintainers; [ _9999years ];
};
}