From b1762c6b49f7fb6469a71e1b59b1f96fcc4dfef2 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Wed, 25 Jan 2012 18:06:30 +0000 Subject: [PATCH] plotutils: fix compilation with libpng15 (debian) svn path=/nixpkgs/branches/libpng15/; revision=31837 --- pkgs/tools/graphics/plotutils/debian-patches.nix | 14 ++++++++++++++ pkgs/tools/graphics/plotutils/debian-patches.txt | 3 +++ pkgs/tools/graphics/plotutils/default.nix | 2 ++ 3 files changed, 19 insertions(+) create mode 100644 pkgs/tools/graphics/plotutils/debian-patches.nix create mode 100644 pkgs/tools/graphics/plotutils/debian-patches.txt diff --git a/pkgs/tools/graphics/plotutils/debian-patches.nix b/pkgs/tools/graphics/plotutils/debian-patches.nix new file mode 100644 index 00000000000..d72974445e6 --- /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 00000000000..8694be8edd7 --- /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 e7263fcf11e..bb250b9d852 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;