Merge pull request #331334 from michaelgrahamevans/switcheroo-fixeroo

switcheroo: add missing imagemagick dependency
This commit is contained in:
Aleksana 2024-08-03 22:27:30 +08:00 committed by GitHub
commit 21ef80eb04
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