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.
This commit is contained in:
Jan Tojnar 2020-03-01 15:38:32 +01:00
parent 44f69611ad
commit 43ea7f1c0a
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -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