From 43ea7f1c0a1611250dddfda076fb3fc1962702fe Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 1 Mar 2020 15:38:32 +0100 Subject: [PATCH] netpbm: Hardcode rgb.txt path We did that in the past with rgbpaths.patch in the past but it was eventually removed. This fixes the regression. --- pkgs/tools/graphics/netpbm/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/graphics/netpbm/default.nix b/pkgs/tools/graphics/netpbm/default.nix index e0d44dc723bf..78c12e3b8dce 100644 --- a/pkgs/tools/graphics/netpbm/default.nix +++ b/pkgs/tools/graphics/netpbm/default.nix @@ -65,6 +65,9 @@ stdenv.mkDerivation { echo "TIFFLIB_NEEDS_JPEG = N" >> config.mk echo "TIFFLIB_NEEDS_Z = N" >> config.mk echo "JPEGLIB = libjpeg.so" >> config.mk + + # Fix path to rgb.txt + echo "RGB_DB_PATH = $out/share/netpbm/misc/rgb.txt" >> config.mk '' + stdenv.lib.optionalString stdenv.isDarwin '' echo "LDSHLIB=-dynamiclib -install_name $out/lib/libnetpbm.\$(MAJ).dylib" >> config.mk echo "NETPBMLIBTYPE = dylib" >> config.mk