From 3631a8f43796993c34f63750e8243e93094ca437 Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Thu, 9 Feb 2023 16:46:21 -0800 Subject: [PATCH 1/2] maintainers: add _9999years --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 92ddda5ca230..18b4118d6310 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -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"; From 10cf86b6351a13ad1287fe267236a130e4b635ef Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Fri, 10 Feb 2023 13:17:04 -0800 Subject: [PATCH 2/2] 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 --- pkgs/shells/nix-your-shell/default.nix | 27 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/shells/nix-your-shell/default.nix diff --git a/pkgs/shells/nix-your-shell/default.nix b/pkgs/shells/nix-your-shell/default.nix new file mode 100644 index 000000000000..c5dfaab71505 --- /dev/null +++ b/pkgs/shells/nix-your-shell/default.nix @@ -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 { }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index afec35a3a835..3828519a56cd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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; });