wildergarden-maim: __structuredAttrs fix (#545771)

This commit is contained in:
Stefan Frijters
2026-07-25 22:08:58 +00:00
committed by GitHub
+15 -13
View File
@@ -77,23 +77,25 @@ stdenv.mkDerivation (finalAttrs: {
alsa-lib
];
# Needed for standalone
NIX_LDFLAGS = "-lX11";
cmakeFlags = [
(lib.cmakeFeature "LAME_LIB" "lib/lame/libmp3lame/.libs/libmp3lame.a")
];
env.NIX_CFLAGS_COMPILE = toString [
# juce, compiled in this build as part of a Git submodule, uses `-flto` as
# a Link Time Optimization flag, and instructs the plugin compiled here to
# use this flag to. This breaks the build for us. Using _fat_ LTO allows
# successful linking while still providing LTO benefits. If our build of
# `juce` was used as a dependency, we could have patched that `-flto` line
# in our juce's source, but that is not possible because it is used as a
# Git Submodule.
"-ffat-lto-objects"
];
env = {
NIX_CFLAGS_COMPILE = toString [
# juce, compiled in this build as part of a Git submodule, uses `-flto` as
# a Link Time Optimization flag, and instructs the plugin compiled here to
# use this flag to. This breaks the build for us. Using _fat_ LTO allows
# successful linking while still providing LTO benefits. If our build of
# `juce` was used as a dependency, we could have patched that `-flto` line
# in our juce's source, but that is not possible because it is used as a
# Git Submodule.
"-ffat-lto-objects"
];
# Needed for standalone
NIX_LDFLAGS = "-lX11";
};
installPhase = ''
runHook preInstall