Files
nixpkgs/pkgs/by-name/de/deer/package.nix
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

41 lines
789 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
perl,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "deer";
version = "1.4";
src = fetchFromGitHub {
owner = "Vifon";
repo = "deer";
rev = "v${finalAttrs.version}";
sha256 = "1xnbnbi0zk2xsyn8dqsmyxqlfnl36pb1wwibnlp0dxixw6sfymyl";
};
strictDeps = true;
prePatch = ''
substituteInPlace deer \
--replace " perl " " ${perl}/bin/perl "
'';
patches = [ ./realpath.patch ];
installPhase = ''
mkdir -p $out/share/zsh/site-functions/
cp deer $out/share/zsh/site-functions/
'';
meta = {
description = "Ranger-like file navigation for zsh";
homepage = "https://github.com/Vifon/deer";
license = lib.licenses.gpl3Plus;
maintainers = [ ];
platforms = lib.platforms.unix;
};
})