2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, perl }:
|
2017-08-31 02:33:12 +00:00
|
|
|
|
2021-12-07 19:40:23 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "deer";
|
2017-08-31 02:33:12 +00:00
|
|
|
version = "1.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Vifon";
|
|
|
|
repo = "deer";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1xnbnbi0zk2xsyn8dqsmyxqlfnl36pb1wwibnlp0dxixw6sfymyl";
|
|
|
|
};
|
|
|
|
|
2022-05-06 18:39:28 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2017-08-31 02:33:12 +00:00
|
|
|
prePatch = ''
|
2017-08-31 06:05:18 +00:00
|
|
|
substituteInPlace deer \
|
|
|
|
--replace " perl " " ${perl}/bin/perl "
|
2017-08-31 02:33:12 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [ ./realpath.patch ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/zsh/site-functions/
|
|
|
|
cp deer $out/share/zsh/site-functions/
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-08-31 02:33:12 +00:00
|
|
|
description = "Ranger-like file navigation for zsh";
|
|
|
|
homepage = "https://github.com/Vifon/deer";
|
|
|
|
license = licenses.gpl3Plus;
|
2017-12-05 22:20:11 +00:00
|
|
|
maintainers = [ maintainers.vyp ];
|
2017-08-31 02:33:12 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|