about summary refs log tree commit diff
path: root/pkgs/applications/radio/freedv
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2022-10-06 00:55:15 +0200
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2022-10-06 00:55:15 +0200
commit7b68078ea7b5b7442336e7fd6fa5b61ff43a16e6 (patch)
tree4478428d29036aacb9c4468213b390096b57c74d /pkgs/applications/radio/freedv
parenta989aa4619162ff37bcbb8c2fb1e502658647fb2 (diff)
freedv: fix build on x86_64-darwin
Diffstat (limited to 'pkgs/applications/radio/freedv')
-rw-r--r--pkgs/applications/radio/freedv/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/radio/freedv/default.nix b/pkgs/applications/radio/freedv/default.nix
index 9e400a11bee5f..2cb2e6582bfca 100644
--- a/pkgs/applications/radio/freedv/default.nix
+++ b/pkgs/applications/radio/freedv/default.nix
@@ -60,6 +60,10 @@ stdenv.mkDerivation rec {
     "-DUSE_STATIC_DEPS:BOOL=FALSE"
   ] ++ lib.optionals pulseSupport [ "-DUSE_PULSEAUDIO:BOOL=TRUE" ];
 
+  NIX_CFLAGS_COMPILE = lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [
+    "-DAPPLE_OLD_XCODE"
+  ];
+
   meta = with lib; {
     homepage = "https://freedv.org/";
     description = "Digital voice for HF radio";