Merge pull request #332027 from NixOS/backport-331334-to-release-24.05

[Backport release-24.05] switcheroo: add missing imagemagick dependency
This commit is contained in:
Aleksana 2024-08-04 20:29:11 +08:00 committed by GitHub
commit bda052c9d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,6 +6,7 @@
, fetchFromGitLab
, glib
, gtk4
, imagemagick
, libadwaita
, meson
, ninja
@ -53,6 +54,12 @@ stdenv.mkDerivation (finalAttrs: {
darwin.apple_sdk.frameworks.Foundation
];
preFixup = ''
gappsWrapperArgs+=(
--prefix PATH : "${lib.makeBinPath [ imagemagick ]}"
)
'';
# Workaround for the gettext-sys issue
# https://github.com/Koka/gettext-rs/issues/114
env.NIX_CFLAGS_COMPILE = lib.optionalString