navidrome: move CGO_* env vars into env for structuredAttrs

This commit is contained in:
Stefan Frijters
2026-02-19 18:52:41 +01:00
parent 3989aa72dd
commit 7504f63a5a
+3 -1
View File
@@ -64,7 +64,9 @@ buildGoModule (finalAttrs: {
"-X github.com/navidrome/navidrome/consts.gitTag=v${finalAttrs.version}"
];
CGO_CFLAGS = lib.optionals stdenv.cc.isGNU [ "-Wno-return-local-addr" ];
env = lib.optionalAttrs stdenv.cc.isGNU {
CGO_CFLAGS = toString [ "-Wno-return-local-addr" ];
};
postPatch = ''
patchShebangs ui/bin/update-workbox.sh