mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-03 18:54:42 +00:00
Merge pull request #272580 from SuperSandro2000/img2pdf
python311Packages.img2pdf: drop runtime dependencies on colord
This commit is contained in:
commit
56c295d176
@ -17,6 +17,7 @@
|
|||||||
, numpy
|
, numpy
|
||||||
, poppler_utils
|
, poppler_utils
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, runCommand
|
||||||
, scipy
|
, scipy
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -41,7 +42,10 @@ buildPythonPackage rec {
|
|||||||
srgbProfile = if stdenv.isDarwin then
|
srgbProfile = if stdenv.isDarwin then
|
||||||
"/System/Library/ColorSync/Profiles/sRGB Profile.icc"
|
"/System/Library/ColorSync/Profiles/sRGB Profile.icc"
|
||||||
else
|
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 {
|
(fetchpatch {
|
||||||
# https://gitlab.mister-muffin.de/josch/img2pdf/issues/178
|
# https://gitlab.mister-muffin.de/josch/img2pdf/issues/178
|
||||||
|
Loading…
Reference in New Issue
Block a user