libdiscid: move NIX_LDFLAGS into env for structuredAttrs

This commit is contained in:
Stefan Frijters
2026-02-07 14:15:56 +01:00
parent 73fbc5be13
commit d0c694afce
+8 -1
View File
@@ -23,7 +23,14 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-lGq2iGt7c4h8HntEPeQcd7X+IykRLm0kvjrLswRWSSs=";
};
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-framework CoreFoundation -framework IOKit";
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_LDFLAGS = toString [
"-framework"
"CoreFoundation"
"-framework"
"IOKit"
];
};
passthru.updateScript = nix-update-script { };