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:
parent
3631a8f437
commit
10cf86b635
27
pkgs/shells/nix-your-shell/default.nix
Normal file
27
pkgs/shells/nix-your-shell/default.nix
Normal 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 { };
|
||||
}
|
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue