blob: 70684241791310855291c5d7838991a0140e01ff (
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}:${final.file}/bin/file:${final.ncurses}/bin/tput
'';
};
}
|