Skip to content

Commit

Permalink
lesspipe: add dependency on ncurses; actually pull in deps and put th…
Browse files Browse the repository at this point in the history
…em on path
  • Loading branch information
snaar committed Jul 23, 2018
1 parent e0d5f64 commit c6bc77d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkgs/tools/misc/lesspipe/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{ stdenv, fetchFromGitHub, perl, file }:
{ stdenv, lib, fetchFromGitHub, makeWrapper, perl, file, ncurses }:

stdenv.mkDerivation rec {
name = "lesspipe-${version}";
version = "1.82";

buildInputs = [ perl ];
buildInputs = [ makeWrapper perl ];
preConfigure = "patchShebangs .";
preFixupPhases = ["wrapWithDepsPhase"];

src = fetchFromGitHub {
owner = "wofr06";
Expand All @@ -14,6 +15,10 @@ stdenv.mkDerivation rec {
sha256 = "0vb7bpap8vy003ha10hc7hxl17y47sgdnrjpihgqxkn8k0bfqbbq";
};

wrapWithDepsPhase = ''
wrapProgram $out/bin/lesspipe.sh --prefix PATH ":" ${lib.makeBinPath [ file ncurses ]}
'';

meta = with stdenv.lib; {
description = "A preprocessor for less";
longDescription = ''
Expand Down

0 comments on commit c6bc77d

Please sign in to comment.