blob: b791f6e58af570b4775193be60853f675cc71e65 (
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 : ${prev.lib.makeBinPath (with final; [ file ncurses binutils ])}
'';
};
}
|