Commit 07f037a818b8

Vincent Demeester <vincent@sbr.pm>
2026-02-23 06:31:41
fix(overlays): work around navidrome build failure
Added CGO_CFLAGS_ALLOW override for Go 1.25 pkg-config --define-prefix bug that prevents navidrome 0.59 from building. Temporary until Go 1.25.8 lands in nixpkgs.
1 parent 1e68f3c
Changed files (1)
overlays
overlays/default.nix
@@ -36,6 +36,14 @@ in
     feishin = final.master.feishin.override {
       mpv = prev.mpv-unwrapped;
     };
+
+    # Workaround for Go 1.25 pkg-config --define-prefix bug
+    # https://github.com/NixOS/nixpkgs/issues/481611
+    # https://github.com/golang/go/issues/77387
+    # Remove once Go 1.25.8 lands in nixpkgs
+    navidrome = prev.navidrome.overrideAttrs (_old: {
+      CGO_CFLAGS_ALLOW = ".*--define-prefix.*";
+    });
   };
 
   # When applied, the unstable nixpkgs set (declared in the flake inputs) will