summary refs log tree commit diff
path: root/pkgs/servers/mpd
diff options
context:
space:
mode:
authorRyan Burns <rtburns@protonmail.com>2022-02-15 22:41:27 -0800
committerRyan Burns <rtburns@protonmail.com>2022-02-15 22:42:05 -0800
commit716e8a2939b7d50ad52a986f56deafafb05e4323 (patch)
tree56b06126926e9edf38eeac7d57f53a9efc8377dd /pkgs/servers/mpd
parent19574af0af3ffaf7c9e359744ed32556f34536bd (diff)
downloadnixpkgs-716e8a2939b7d50ad52a986f56deafafb05e4323.tar
nixpkgs-716e8a2939b7d50ad52a986f56deafafb05e4323.tar.gz
nixpkgs-716e8a2939b7d50ad52a986f56deafafb05e4323.tar.bz2
nixpkgs-716e8a2939b7d50ad52a986f56deafafb05e4323.tar.lz
nixpkgs-716e8a2939b7d50ad52a986f56deafafb05e4323.tar.xz
nixpkgs-716e8a2939b7d50ad52a986f56deafafb05e4323.tar.zst
nixpkgs-716e8a2939b7d50ad52a986f56deafafb05e4323.zip
mpd: fix build on x86_64-darwin
The darwin-specific AssertMacros header has some legacy macros with very
generic names such as "check" which happen to conflict with mpd's
headers. We can explicitly opt out of these macros - at some point in
the future, they will not be defined by default.

Also remove stdenv override, not needed now that x86_64-darwin uses LLVM 11
Diffstat (limited to 'pkgs/servers/mpd')
-rw-r--r--pkgs/servers/mpd/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/servers/mpd/default.nix b/pkgs/servers/mpd/default.nix
index 9eff996f78c..8eb78270377 100644
--- a/pkgs/servers/mpd/default.nix
+++ b/pkgs/servers/mpd/default.nix
@@ -157,6 +157,10 @@ let
       outputs = [ "out" "doc" ]
         ++ lib.optional (builtins.elem "documentation" features_) "man";
 
+      CXXFLAGS = lib.optionals stdenv.isDarwin [
+        "-D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0"
+      ];
+
       mesonFlags = [
         "-Dtest=true"
         "-Dmanpages=true"