diff --git a/pkgs/development/python-modules/img2pdf/default.nix b/pkgs/development/python-modules/img2pdf/default.nix index 3bfbb03fc675..1a69525d8438 100644 --- a/pkgs/development/python-modules/img2pdf/default.nix +++ b/pkgs/development/python-modules/img2pdf/default.nix @@ -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