2023-02-16 17:41:37 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nix-your-shell";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.4.5";
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MercuryTechnologies";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-gjOvAy15y4WJ4LMmiF17nuY6aAsC1V7/zZ+nt+xDh24=";
|
2023-02-16 17:41:37 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoHash = "sha256-EyE/Sv8cY/e8uf4b/7M3kJhd/l+dZS62np58xICF77U=";
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-10-19 13:55:26 +00:00
|
|
|
mainProgram = "nix-your-shell";
|
2023-02-16 17:41:37 +00:00
|
|
|
description = "A `nix` and `nix-shell` wrapper for shells other than `bash`";
|
|
|
|
homepage = "https://github.com/MercuryTechnologies/nix-your-shell";
|
|
|
|
license = [ licenses.mit ];
|
|
|
|
maintainers = [ maintainers._9999years ];
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
}
|