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;