diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2024-05-27 17:30:59 +0200 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2024-06-07 13:09:02 +0200 |
commit | 7316e2d8796e6a00aa61133481fd9de5a0349669 (patch) | |
tree | e2a150a543cb8ef49e700a6d1609d232d89b31f2 /pkgs/development | |
parent | f37d2a285a125b3ff6bfb459c4bc929b1b77ccfe (diff) |
webp-pixbuf-loader: fix cross-comilation
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/webp-pixbuf-loader/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/libraries/webp-pixbuf-loader/default.nix b/pkgs/development/libraries/webp-pixbuf-loader/default.nix index b3f4e4d483901..78496c0e919e3 100644 --- a/pkgs/development/libraries/webp-pixbuf-loader/default.nix +++ b/pkgs/development/libraries/webp-pixbuf-loader/default.nix @@ -52,6 +52,9 @@ stdenv.mkDerivation rec { GDK_PIXBUF_MODULEDIR="$out/${moduleDir}" \ gdk-pixbuf-query-loaders --update-cache + # gdk-pixbuf disables the thumbnailer in cross-builds (https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/commit/fc37708313a5fc52083cf10c9326f3509d67701f) + # and therefore makeWrapper will fail because 'gdk-pixbuf-thumbnailer' the executable does not exist. + '' + lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) '' # It assumes gdk-pixbuf-thumbnailer can find the webp loader in the loaders.cache referenced by environment variable, breaking containment. # So we replace it with a wrapped executable. mkdir -p "$out/bin" |