Adding psutils.

Have we lived without psnup so many years? Incredible.
This commit is contained in:
Lluís Batlle i Rossell 2016-07-27 10:26:15 +02:00
parent 0309ab350b
commit 03f368ca93
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{ stdenv, fetchurl, perl }:
stdenv.mkDerivation rec {
name = "psutils-17";
src = fetchurl {
url = "ftp://ftp.knackered.org/pub/psutils/psutils-p17.tar.gz";
sha256 = "1r4ab1fvgganm02kmm70b2r1azwzbav2am41gbigpa2bb1wynlrq";
};
configurePhase = ''
sed -e 's,/usr/local/bin/perl,${perl}/bin/perl,' \
-e "s,/usr/local,$out," \
Makefile.unix > Makefile
'';
preInstall = ''
mkdir -p $out/bin $out/share/man/man1
'';
meta = with stdenv.lib; {
description = "Collection of useful utilities for manipulating PS documents";
homepage = http://knackered.knackered.org/angus/psutils/;
license = licenses.bsd;
};
}

View File

@ -3164,6 +3164,8 @@ in
pstoedit = callPackage ../tools/graphics/pstoedit { };
psutils = callPackage ../tools/typesetting/psutils { };
pv = callPackage ../tools/misc/pv { };
pwgen = callPackage ../tools/security/pwgen { };