blob: a65e5a85974d60af0476f6adf775b53a469ecb05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ final, prev, sources, ... }: {
lesspipe = final.stdenv.mkDerivation {
pname = "lesspipe";
inherit (sources.lesspipe) version src;
nativeBuildInputs = with final; [ perl ];
buildInputs = with final; [ perl zsh makeWrapper ];
strictDeps = true;
configureFlags = [ "--shell=${final.zsh}/bin/zsh" "--yes" "--prefix=/" ];
makeFlags = [ "PREFIX=" "DESTDIR=$(out)" ];
configurePlatforms = [];
dontBuild = true;
preConfigure = ''
patchShebangs --build configure
'';
preFixup = ''
wrapProgram $out/bin/lesspipe.sh \
--prefix PATH : ${final.python3.pkgs.pygments}/bin:${final.file}/bin:${final.ncurses}/bin
'';
};
}
|