summaryrefslogtreecommitdiff
path: root/overlays
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-06-28 09:46:04 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-06-28 09:46:04 +0200
commitdacafd3cd7f0656ebf12f2845b17224a121b693f (patch)
tree84019e3443190ca1be84e06ed03a750b83c1d502 /overlays
parent3a85c6891dc862ec39ccd53dbd7424b8b5264a34 (diff)
downloadnixos-dacafd3cd7f0656ebf12f2845b17224a121b693f.tar
nixos-dacafd3cd7f0656ebf12f2845b17224a121b693f.tar.gz
nixos-dacafd3cd7f0656ebf12f2845b17224a121b693f.tar.bz2
nixos-dacafd3cd7f0656ebf12f2845b17224a121b693f.tar.xz
nixos-dacafd3cd7f0656ebf12f2845b17224a121b693f.zip
...
Diffstat (limited to 'overlays')
-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}