618
618
libpng = previous . libpng . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
619
619
libpng_apng = previous . libpng_apng . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
620
620
libpng12 = previous . libpng12 . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
621
+ libtiff = previous . libtiff . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
622
+ libwebp = previous . libwebp . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
621
623
622
624
expat = previous . expat . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
623
625
@@ -639,13 +641,25 @@ let
639
641
640
642
libxcb = previous . xorg . libxcb . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
641
643
libX11 = previous . xorg . libX11 . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
644
+ libXau = previous . xorg . libXau . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
645
+ libXcursor = previous . xorg . libXcursor . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
646
+ libXdmcp = previous . xorg . libXdmcp . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
642
647
libXext = previous . xorg . libXext . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
648
+ libXfixes = previous . xorg . libXfixes . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
649
+ libXi = previous . xorg . libXi . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
643
650
libXinerama = previous . xorg . libXinerama . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
644
651
libXrandr = previous . xorg . libXrandr . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
645
652
libXrender = previous . xorg . libXrender . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
646
653
libXScrnSaver = previous . xorg . libXScrnSaver . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
647
- libXau = previous . xorg . libXau . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
648
- libXdmcp = previous . xorg . libXdmcp . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
654
+ libXxf86vm = previous . xorg . libXxf86vm . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
655
+
656
+ SDL2 = previous . SDL2 . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
657
+ SDL2_gfx = previous . SDL2_gfx . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
658
+ SDL2_image = previous . SDL2_image . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
659
+ SDL2_mixer = previous . SDL2_mixer . overrideAttrs ( old : { dontDisableStatic = true ; } ) ;
660
+
661
+ libjpeg = previous . libjpeg . override ( old : { enableStatic = true ; } ) ;
662
+ libjpeg_turbo = previous . libjpeg_turbo . override ( old : { enableStatic = true ; } ) ;
649
663
650
664
openblas = previous . openblas . override { enableStatic = true ; } ;
651
665
791
805
enableLibraryProfiling = false ;
792
806
enableExecutableProfiling = false ;
793
807
808
+ # Skip tests on -O0 because some tests are extremely slow on -O0.
809
+ # This prevents us from finding upstream correctness issues that
810
+ # appear only with -O0,
811
+ # such as https://github.com/bos/double-conversion/issues/26
812
+ # but that's OK for now as we want -O0 mainly for faster feedback.
813
+ # doCheck = !disableOptimization;
814
+
794
815
# If `disableOptimization` is on for fast iteration, pass `-O0` to GHC.
795
816
# We use `buildFlags` instead of `configureFlags` so that it's
796
817
# also in effect for packages which specify e.g.
@@ -1038,6 +1059,63 @@ let
1038
1059
[ final . nettle final . bzip2 ]
1039
1060
"--libs nettle bz2" ;
1040
1061
1062
+ sdl2-gfx =
1063
+ addStaticLinkerFlagsWithPkgconfig
1064
+ super . sdl2-gfx
1065
+ ( with final ; [
1066
+ nettle
1067
+ SDL2
1068
+ SDL2_gfx
1069
+
1070
+ libX11
1071
+ libXext
1072
+ libXcursor
1073
+ libXdmcp
1074
+ libXinerama
1075
+ libXi
1076
+ libXrandr
1077
+ libXxf86vm
1078
+ libXScrnSaver
1079
+ libXrender
1080
+ libXfixes
1081
+ libXau
1082
+ libxcb
1083
+ xorg . libpthreadstubs
1084
+ ] )
1085
+ "--libs nettle sdl2 SDL2_gfx xcursor" ;
1086
+
1087
+ sdl2-image =
1088
+ addStaticLinkerFlagsWithPkgconfig
1089
+ super . sdl2-image
1090
+ ( with final ; [
1091
+ nettle
1092
+ SDL2
1093
+ SDL2_image
1094
+
1095
+ libX11
1096
+ libXext
1097
+ libXcursor
1098
+ libXdmcp
1099
+ libXinerama
1100
+ libXi
1101
+ libXrandr
1102
+ libXxf86vm
1103
+ libXScrnSaver
1104
+ libXrender
1105
+ libXfixes
1106
+ libXau
1107
+ libxcb
1108
+ xorg . libpthreadstubs
1109
+
1110
+ libjpeg
1111
+ libpng
1112
+ libtiff
1113
+ zlib_both
1114
+ lzma
1115
+ libwebp
1116
+ ] )
1117
+ "--libs nettle sdl2 SDL2_image xcursor libpng libjpeg libtiff-4 libwebp" ;
1118
+
1041
1119
# Added for #14
1042
1120
tttool = callCabal2nix "tttool" ( final . fetchFromGitHub {
1043
1121
owner = "entropia" ;
@@ -1247,11 +1325,6 @@ in
1247
1325
"OpenAL" # transitively depends on `systemd`, which doesn't build with musl
1248
1326
"qchas" # openmp linker error via openblas
1249
1327
"rhine-gloss" # needs opengl
1250
- "sdl2" # transitively depends on `systemd`, which doesn't build with musl
1251
- "sdl2-gfx" # see `sdl2`
1252
- "sdl2-image" # see `sdl2`
1253
- "sdl2-mixer" # see `sdl2`
1254
- "sdl2-ttf" # see `sdl2`
1255
1328
"soxlib" # transitively depends on `systemd`, which doesn't build with musl
1256
1329
"yesod-paginator" # some `curl` build failure; seems to be in *fetching* the source .tar.gz in `fetchurl`, and gss is enabled there even though we tried to disable it
1257
1330
] ;
0 commit comments