Fix use of core-ext passthru flags
This commit is contained in:
+2
-2
@@ -59,12 +59,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
];
|
||||
|
||||
makeFlags =
|
||||
(coreInitExt.passthru.makeFlags or [ ])
|
||||
(if coreInitExt == null then [ ] else coreInitExt.passthru.extraMakeFlags)
|
||||
++ map (opt: "OPTIONS+=${lib.escapeShellArg opt}") featureFlags
|
||||
++ [
|
||||
"sqlite3"
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_LINK = lib.optionalString features.ENABLE_FTS5 "-lm";
|
||||
env.NIX_LDFLAGS = lib.concatStringsSep " " (coreInitExt.passthru.extraLDFLAGS or [ ]);
|
||||
env.NIX_LDFLAGS = lib.concatStringsSep " " (if coreInitExt == null then [ ] else coreInitExt.passthru.extraLDFLAGS);
|
||||
})
|
||||
|
||||
+2
-3
@@ -55,19 +55,18 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"--${if static then "disable" else "enable"}-shared"
|
||||
"--${if static then "enable" else "disable"}-static"
|
||||
"--${if amalgamate then "enable" else "disable"}-amalgamation"
|
||||
|
||||
] ++ lib.optional features.ENABLE_ICU [
|
||||
"--enable-icu-collations"
|
||||
"--with-icu-config=${lib.getExe' icu.dev "icu-config"}"
|
||||
];
|
||||
|
||||
makeFlags =
|
||||
(coreInitExt.passthru.makeFlags or [ ])
|
||||
(if coreInitExt == null then [ ] else coreInitExt.passthru.extraMakeFlags)
|
||||
++ map (opt: "OPTIONS+=${lib.escapeShellArg opt}") featureFlags
|
||||
++ [
|
||||
(if static then "lib" else "so")
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_LINK = lib.optionalString features.ENABLE_FTS5 "-lm";
|
||||
env.NIX_LDFLAGS = lib.concatStringsSep " " (coreInitExt.passthru.extraLDFLAGS or [ ]);
|
||||
env.NIX_LDFLAGS = lib.concatStringsSep " " (if coreInitExt == null then [ ] else coreInitExt.passthru.extraLDFLAGS);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user