blob: 3258eb7090a640c39152cb4fed12a1680364b6a9 (
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" "--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
'';
};
}
|