2023-02-10 21:17:04 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nix-your-shell";
|
2023-02-22 20:22:36 +00:00
|
|
|
version = "1.1.1";
|
2023-02-10 21:17:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MercuryTechnologies";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-02-22 20:22:36 +00:00
|
|
|
sha256 = "sha256-g5TC+4DGbTAlG39R8QIM5cB3/mtkp/vz8puB0Kr6aag=";
|
2023-02-10 21:17:04 +00:00
|
|
|
};
|
|
|
|
|
2023-02-22 20:22:36 +00:00
|
|
|
cargoSha256 = "sha256-AiWKSWwMh6KWCTTRRCBxekv2rukz+ijnRit11K/AnhU=";
|
2023-02-10 21:17:04 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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 { };
|
|
|
|
}
|