summaryrefslogtreecommitdiff
path: root/overlays/lesspipe.nix
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/lesspipe.nix')
-rw-r--r--overlays/lesspipe.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/overlays/lesspipe.nix b/overlays/lesspipe.nix
new file mode 100644
index 00000000..70684241
--- /dev/null
+++ b/overlays/lesspipe.nix
@@ -0,0 +1,23 @@
1{ final, prev, sources, ... }: {
2 lesspipe = final.stdenv.mkDerivation {
3 pname = "lesspipe";
4 inherit (sources.lesspipe) version src;
5
6 nativeBuildInputs = with final; [ perl ];
7 buildInputs = with final; [ perl zsh makeWrapper ];
8 strictDeps = true;
9 configureFlags = [ "--shell=${final.zsh}/bin/zsh" "--yes" "--prefix=/" ];
10 makeFlags = [ "PREFIX=" "DESTDIR=$(out)" ];
11 configurePlatforms = [];
12 dontBuild = true;
13
14 preConfigure = ''
15 patchShebangs --build configure
16 '';
17
18 preFixup = ''
19 wrapProgram $out/bin/lesspipe.sh \
20 --prefix PATH : ${final.python3.pkgs.pygments}:${final.file}/bin/file:${final.ncurses}/bin/tput
21 '';
22 };
23}