python311Packages.img2pdf: drop runtime dependencies on colord

This commit is contained in:
Sandro Jäckel 2023-12-07 01:43:46 +01:00
parent 35e4c570a6
commit 07c0aaf37f
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -17,6 +17,7 @@
, numpy
, poppler_utils
, pytestCheckHook
, runCommand
, scipy
}:
@ -41,7 +42,10 @@ buildPythonPackage rec {
srgbProfile = if stdenv.isDarwin then
"/System/Library/ColorSync/Profiles/sRGB Profile.icc"
else
"${colord}/share/color/icc/colord/sRGB.icc";
# break runtime dependency chain all of colord dependencies
runCommand "sRGC.icc" { } ''
cp ${colord}/share/color/icc/colord/sRGB.icc $out
'';
})
(fetchpatch {
# https://gitlab.mister-muffin.de/josch/img2pdf/issues/178