forked from mirrors/nixpkgs
Merge pull request #188969 from wegank/freedv-darwin
freedv: fix build on x86_64-darwin
This commit is contained in:
commit
b8f077c55f
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue