Merge pull request #215733 from 9999years/nix-your-shell

nix-your-shell: init at 1.0.1
This commit is contained in:
figsoda 2023-02-11 21:28:51 -05:00 committed by GitHub
commit b71a0e4f1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 0 deletions

View File

@ -169,6 +169,12 @@
githubId = 12578560;
name = "Quinn Bohner";
};
_9999years = {
email = "rbt@fastmail.com";
github = "9999years";
githubId = 15312184;
name = "Rebecca Turner";
};
a1russell = {
email = "adamlr6+pub@gmail.com";
github = "a1russell";

View File

@ -0,0 +1,27 @@
{ lib
, rustPlatform
, fetchFromGitHub
, nix-update-script
}:
rustPlatform.buildRustPackage rec {
pname = "nix-your-shell";
version = "1.0.1";
src = fetchFromGitHub {
owner = "MercuryTechnologies";
repo = pname;
rev = "v${version}";
sha256 = "sha256-kdZFwMHatnhdXGSIItuE3g27qqUKqT/Hkbz13Ba5eq4=";
};
cargoSha256 = "sha256-U4nN/N345XFRj0L9cLJAjRuND0W3OE6XEB/z3zXaUiQ=";
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 { };
}

View File

@ -13840,6 +13840,8 @@ with pkgs;
any-nix-shell = callPackage ../shells/any-nix-shell { };
nix-your-shell = callPackage ../shells/nix-your-shell { };
bash = lowPrio (callPackage ../shells/bash/5.nix {
binutils = stdenv.cc.bintools;
});