2024-09-26 23:57:24 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
nix-update-script,
|
2023-02-10 21:17:04 +00:00
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nix-your-shell";
|
2024-09-26 13:26:19 +01:00
|
|
|
version = "1.4.6";
|
2023-02-10 21:17:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MercuryTechnologies";
|
2024-09-27 02:06:37 +01:00
|
|
|
repo = "nix-your-shell";
|
2023-02-10 21:17:04 +00:00
|
|
|
rev = "v${version}";
|
2024-09-26 13:26:19 +01:00
|
|
|
hash = "sha256-FjGjLq/4qeZz9foA7pfz1hiXvsdmbnzB3BpiTESLE1c=";
|
2023-02-10 21:17:04 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 13:26:19 +01:00
|
|
|
cargoHash = "sha256-2NgN2/dr48ogkcjOq6UE4jDQBeewceWzdpRlXqi744s=";
|
2023-02-10 21:17:04 +00:00
|
|
|
|
2024-09-27 02:06:37 +01:00
|
|
|
meta = {
|
2023-10-13 14:33:13 +01:00
|
|
|
mainProgram = "nix-your-shell";
|
2023-02-10 21:17:04 +00:00
|
|
|
description = "`nix` and `nix-shell` wrapper for shells other than `bash`";
|
|
|
|
homepage = "https://github.com/MercuryTechnologies/nix-your-shell";
|
2024-09-27 02:06:37 +01:00
|
|
|
changelog = "https://github.com/MercuryTechnologies/nix-your-shell/releases/tags/v${version}";
|
|
|
|
license = [ lib.licenses.mit ];
|
|
|
|
maintainers = with lib.maintainers; [ _9999years ];
|
2023-02-10 21:17:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
}
|