3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #188969 from wegank/freedv-darwin

freedv: fix build on x86_64-darwin
This commit is contained in:
Sandro 2022-10-06 09:38:43 +02:00 committed by GitHub
commit b8f077c55f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@
, portaudio
, speexdsp
, hamlib
, wxGTK31-gtk3
, wxGTK32
, pulseSupport ? config.pulseaudio or stdenv.isLinux
, AppKit
, AVFoundation
@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
lpcnetfreedv
speexdsp
hamlib
wxGTK31-gtk3
wxGTK32
] ++ (if pulseSupport then [ libpulseaudio ] else [ portaudio ])
++ lib.optionals stdenv.isDarwin [
AppKit
@ -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";