about summary refs log tree commit diff
path: root/pkgs/tools/typesetting
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2016-07-27 10:26:15 +0200
committerLluís Batlle i Rossell <viric@viric.name>2016-07-27 10:26:15 +0200
commit03f368ca93b86a6b695fef5bad6f800fbee5fb6a (patch)
tree0fa879d2da2b1dc2b239b1c0e57646b8e6a692b6 /pkgs/tools/typesetting
parent0309ab350b1558ccd37a1418dfc627b153d90651 (diff)
downloadnixlib-03f368ca93b86a6b695fef5bad6f800fbee5fb6a.tar
nixlib-03f368ca93b86a6b695fef5bad6f800fbee5fb6a.tar.gz
nixlib-03f368ca93b86a6b695fef5bad6f800fbee5fb6a.tar.bz2
nixlib-03f368ca93b86a6b695fef5bad6f800fbee5fb6a.tar.lz
nixlib-03f368ca93b86a6b695fef5bad6f800fbee5fb6a.tar.xz
nixlib-03f368ca93b86a6b695fef5bad6f800fbee5fb6a.tar.zst
nixlib-03f368ca93b86a6b695fef5bad6f800fbee5fb6a.zip
Adding psutils.
Have we lived without psnup so many years? Incredible.
Diffstat (limited to 'pkgs/tools/typesetting')
-rw-r--r--pkgs/tools/typesetting/psutils/default.nix26
1 files changed, 26 insertions, 0 deletions
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;
+  };
+}