File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1
1
[ {
2
+ package-keys = [ "HsOpenSSL" "libsodium" "double-conversion" ] ;
2
3
# See https://github.com/haskell-cryptography/HsOpenSSL/issues/95
3
4
packages . HsOpenSSL . ghcOptions = [ "-optc=-Wno-incompatible-pointer-types" ] ;
4
5
}
7
8
packages . libsodium . configureFlags = [ "--c2hs-option=--cppopts=-D_Null_unspecified=" ] ;
8
9
packages . libsodium . components . library . hardeningDisable = [ "fortify" ] ;
9
10
} )
11
+
12
+ ( { pkgs , lib , ...} : lib . mkIf pkgs . stdenv . hostPlatform . isStatic {
13
+ packages . double-conversion . ghcOptions = [
14
+ # stop putting U __gxx_personality_v0 into the library!
15
+ "-optcxx-fno-rtti"
16
+ "-optcxx-fno-exceptions"
17
+ # stop putting U __cxa_guard_release into the library!
18
+ "-optcxx-std=gnu++98"
19
+ "-optcxx-fno-threadsafe-statics"
20
+ ] ;
21
+ } )
10
22
]
You can’t perform that action at this time.
0 commit comments