about summary refs log tree commit diff
path: root/pkgs/tools/graphics/plotutils
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud.urkud@gmail.com>2012-01-25 18:06:30 +0000
committerYury G. Kudryashov <urkud.urkud@gmail.com>2012-01-25 18:06:30 +0000
commitb1762c6b49f7fb6469a71e1b59b1f96fcc4dfef2 (patch)
tree5528d6274b8837cc0e65ad2fa52f5e03f6736982 /pkgs/tools/graphics/plotutils
parent390f8aa954f3e58f41b3465769e40d6f07664ef1 (diff)
downloadnixlib-b1762c6b49f7fb6469a71e1b59b1f96fcc4dfef2.tar
nixlib-b1762c6b49f7fb6469a71e1b59b1f96fcc4dfef2.tar.gz
nixlib-b1762c6b49f7fb6469a71e1b59b1f96fcc4dfef2.tar.bz2
nixlib-b1762c6b49f7fb6469a71e1b59b1f96fcc4dfef2.tar.lz
nixlib-b1762c6b49f7fb6469a71e1b59b1f96fcc4dfef2.tar.xz
nixlib-b1762c6b49f7fb6469a71e1b59b1f96fcc4dfef2.tar.zst
nixlib-b1762c6b49f7fb6469a71e1b59b1f96fcc4dfef2.zip
plotutils: fix compilation with libpng15 (debian)
svn path=/nixpkgs/branches/libpng15/; revision=31837
Diffstat (limited to 'pkgs/tools/graphics/plotutils')
-rw-r--r--pkgs/tools/graphics/plotutils/debian-patches.nix14
-rw-r--r--pkgs/tools/graphics/plotutils/debian-patches.txt3
-rw-r--r--pkgs/tools/graphics/plotutils/default.nix2
3 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/plotutils/debian-patches.nix b/pkgs/tools/graphics/plotutils/debian-patches.nix
new file mode 100644
index 000000000000..d72974445e6d
--- /dev/null
+++ b/pkgs/tools/graphics/plotutils/debian-patches.nix
@@ -0,0 +1,14 @@
+# Generated by debian-patches.sh from debian-patches.txt
+let
+  prefix = "http://patch-tracker.debian.org/patch/series/dl/plotutils/2.6-2";
+in
+[
+  {
+    url = "${prefix}/10_repair_postscript";
+    sha256 = "01v4a8mdhgsjxbf9a2xppx2lb05lp818v8afp5x2njv64wpgla8p";
+  }
+  {
+    url = "${prefix}/25_libpng15";
+    sha256 = "0l640rcsgc2mwpk7iqm0cf3b0gfcdgcn9wg4x88gaqxzx9rriph0";
+  }
+]
diff --git a/pkgs/tools/graphics/plotutils/debian-patches.txt b/pkgs/tools/graphics/plotutils/debian-patches.txt
new file mode 100644
index 000000000000..8694be8edd79
--- /dev/null
+++ b/pkgs/tools/graphics/plotutils/debian-patches.txt
@@ -0,0 +1,3 @@
+plotutils/2.6-2
+10_repair_postscript
+25_libpng15
diff --git a/pkgs/tools/graphics/plotutils/default.nix b/pkgs/tools/graphics/plotutils/default.nix
index e7263fcf11e7..bb250b9d8523 100644
--- a/pkgs/tools/graphics/plotutils/default.nix
+++ b/pkgs/tools/graphics/plotutils/default.nix
@@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
 
   buildInputs = [libpng];
 
+  patches = map fetchurl (import ./debian-patches.nix);
+
   configureFlags = "--enable-libplotter"; # required for pstoedit
 
   doCheck = true;