From dacafd3cd7f0656ebf12f2845b17224a121b693f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 28 Jun 2022 09:46:04 +0200 Subject: ... --- overlays/lesspipe.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 overlays/lesspipe.nix (limited to 'overlays') 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 @@ +{ 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 + ''; + }; +} -- cgit v1.2.3