about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2023-12-07 01:43:46 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2023-12-07 01:44:29 +0100
commit07c0aaf37ff53b90e7cd4d96c34e4416a5ea727d (patch)
tree99873ee25efb873b91e1fed2357ab0f37224b986
parent35e4c570a6da96e455107e789e7726a3ca542bf0 (diff)
python311Packages.img2pdf: drop runtime dependencies on colord
-rw-r--r--pkgs/development/python-modules/img2pdf/default.nix6
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