File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change 44
44
builtins . attrValues inputs . iohkNix . overlays ++
45
45
[ inputs . haskellNix . overlay
46
46
47
- ( final : prev : with final ; {
48
- # Required in order to build postgresql for musl
49
- postgresql = ( final . postgresql_11
50
- . overrideAttrs ( _ : lib . optionalAttrs ( stdenv . hostPlatform . isMusl ) {
51
- dontDisableStatic = true ;
52
- NIX_LDFLAGS = "--push-state --as-needed -lstdc++ --pop-state" ;
53
- # without this collate.icu.utf8, and foreign_data will fail.
54
- LC_CTYPE = "C" ;
55
- } ) )
56
- . override {
57
- enableSystemd = stdenv . hostPlatform . isLinux && ! stdenv . hostPlatform . isMusl ;
58
- gssSupport = stdenv . hostPlatform . isLinux && ! stdenv . hostPlatform . isMusl ;
59
- } ;
60
- } )
61
-
62
47
( final : prev : {
63
48
inherit ( project . hsPkgs . cardano-node . components . exes ) cardano-node ;
64
49
inherit ( project . hsPkgs . cardano-cli . components . exes ) cardano-cli ;
264
249
postgresTest ;
265
250
} )
266
251
252
+ ( pkgs . lib . mkIf pkgs . hostPlatform . isMusl
253
+ ( let
254
+ ghcOptions = [
255
+ "-L${ pkgs . postgresql } /lib"
256
+ "-optl-Wl,-lpgport"
257
+ "-optl-Wl,-lpgcommon"
258
+ ] ;
259
+ in {
260
+ packages . cardano-chain-gen . ghcOptions = ghcOptions ;
261
+ packages . cardano-db-sync . ghcOptions = ghcOptions ;
262
+ packages . cardano-db . ghcOptions = ghcOptions ;
263
+ packages . cardano-db-tool . ghcOptions = ghcOptions ;
264
+ packages . cardano-smash-server . ghcOptions = ghcOptions ;
265
+ } ) )
266
+
267
267
( {
268
268
packages . double-conversion . ghcOptions = [
269
269
# stop putting U __gxx_personality_v0 into the library!
You can’t perform that action at this time.
0 commit comments