blob: fdcd2582c2e85ad5b7228fc0a74a8a48d415cae1 (
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; [ csvkit file ncurses binutils ])}
'';
};
}
|