nix-your-shell: init at 1.0.1

An `any-nix-shell` alternative with support for `nix develop` / flakes.

https://github.com/MercuryTechnologies/nix-your-shell
This commit is contained in:
Rebecca Turner 2023-02-10 13:17:04 -08:00
parent 3631a8f437
commit 10cf86b635
No known key found for this signature in database
2 changed files with 29 additions and 0 deletions

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;
});