@@ -1,5 +1,7 @@
11{ stdenv, fetchurl, autoPatchelfHook
22, ncurses5, zlib, gmp
3+, makeWrapper
4+, less
35}:
46
57stdenv.mkDerivation rec {
@@ -23,12 +25,13 @@ stdenv.mkDerivation rec {
2325 dontBuild = true;
2426 dontConfigure = true;
2527
26− nativeBuildInputs = stdenv.lib.optional (!stdenv.isDarwin) autoPatchelfHook;
28+ nativeBuildInputs = [ makeWrapper ] ++ (stdenv.lib.optional (!stdenv.isDarwin) autoPatchelfHook);
2729 buildInputs = stdenv.lib.optionals (!stdenv.isDarwin) [ ncurses5 zlib gmp ];
2830
2931 installPhase = ''
3032 mkdir -p $out/bin
3133 mv ucm $out/bin
34+ wrapProgram $out/bin/ucm --prefix PATH ":" "${stdenv.lib.makeBinPath [ less ]}";
3235 '';
3336
3437 meta = with stdenv.lib; {