Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions survey/default.nix
Original file line number Diff line number Diff line change
@@ -661,6 +661,18 @@ let
SDL2_image = previous.SDL2_image.overrideAttrs (old: { dontDisableStatic = true; });
SDL2_mixer = previous.SDL2_mixer.overrideAttrs (old: { dontDisableStatic = true; });

# For icu, `dontDisableStatic` is not enough. We need explicit `--enable-static`.
# See https://github.com/unicode-org/icu/blob/0735ea8c6f6a0efa258db1f047edc63a43c6aafa/icu4c/source/configure.ac#L289-L299
# Also potentially concerning: http://userguide.icu-project.org/packaging
# > Users of your ICU must compile with -DU_STATIC_IMPLEMENTATION.
# TODO: Override ALL icu derivations, not just icu64.
icu64 = previous.icu64.overrideAttrs (old: {
dontDisableStatic = true;
configureFlags = (old.configureFlags or []) ++ [
"--enable-static"
];
});

libjpeg = previous.libjpeg.override (old: { enableStatic = true; });
libjpeg_turbo = previous.libjpeg_turbo.override (old: { enableStatic = true; });