diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2023-12-07 01:43:46 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2023-12-07 01:44:29 +0100 |
commit | 07c0aaf37ff53b90e7cd4d96c34e4416a5ea727d (patch) | |
tree | 99873ee25efb873b91e1fed2357ab0f37224b986 | |
parent | 35e4c570a6da96e455107e789e7726a3ca542bf0 (diff) |
python311Packages.img2pdf: drop runtime dependencies on colord
-rw-r--r-- | pkgs/development/python-modules/img2pdf/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/img2pdf/default.nix b/pkgs/development/python-modules/img2pdf/default.nix index 3bfbb03fc6759..1a69525d84388 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 |