nixpkgs/pkgs/by-name/an/any-nix-shell/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
957 B
Nix
Raw Normal View History

2024-07-17 09:00:56 +00:00
{
lib,
stdenv,
fetchFromGitHub,
makeWrapper,
bash,
gnused,
which,
2024-07-17 09:00:56 +00:00
}:
2018-09-13 21:15:54 +00:00
stdenv.mkDerivation rec {
pname = "any-nix-shell";
2024-07-23 18:25:39 +00:00
version = "2.0.1";
2018-09-13 21:15:54 +00:00
src = fetchFromGitHub {
owner = "haslersn";
repo = "any-nix-shell";
rev = "v${version}";
2024-07-23 18:25:39 +00:00
hash = "sha256-t6+LKSGWmkHQhfqw/4Ztz4QgDXQ2RZr9R/mMEEA3jlY=";
2018-09-13 21:15:54 +00:00
};
2022-05-06 18:39:28 +00:00
strictDeps = true;
2018-09-13 21:15:54 +00:00
nativeBuildInputs = [ makeWrapper ];
2022-05-06 18:39:28 +00:00
buildInputs = [ bash ];
2018-09-13 21:15:54 +00:00
installPhase = ''
runHook preInstall
2018-09-13 21:15:54 +00:00
mkdir -p $out/bin
cp -r bin $out
wrapProgram $out/bin/any-nix-shell --prefix PATH ":" ${
lib.makeBinPath [
(placeholder "out")
gnused
which
]
}
runHook postInstall
2018-09-13 21:15:54 +00:00
'';
meta = {
2024-07-17 09:51:15 +00:00
description = "fish, xonsh and zsh support for nix-shell";
license = lib.licenses.mit;
homepage = "https://github.com/haslersn/any-nix-shell";
maintainers = with lib.maintainers; [ haslersn ];
mainProgram = "any-nix-shell";
2018-09-13 21:15:54 +00:00
};
}