diff --git a/pkgs/tools/typesetting/psutils/default.nix b/pkgs/tools/typesetting/psutils/default.nix new file mode 100644 index 000000000000..af5346f7acf7 --- /dev/null +++ b/pkgs/tools/typesetting/psutils/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e29f3733ec9a..0f098d757ce6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };