cryptsetup: move NIX_LDFLAGS into env for structuredAttrs (#488505)

This commit is contained in:
@mjones
2026-02-12 05:48:09 +00:00
committed by GitHub
+3 -1
View File
@@ -56,7 +56,9 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace tests/unit-utils-io.c --replace "| O_DIRECT" ""
'';
NIX_LDFLAGS = lib.optionalString (stdenv.cc.isGNU && !stdenv.hostPlatform.isStatic) "-lgcc_s";
env = lib.optionalAttrs (stdenv.cc.isGNU && !stdenv.hostPlatform.isStatic) {
NIX_LDFLAGS = "-lgcc_s";
};
configureFlags = [
"--with-crypto_backend=openssl"