freedv: use new apple sdk pattern

This commit is contained in:
Weijia Wang
2025-01-09 21:45:08 +01:00
parent ce23adb791
commit 6635523f69
2 changed files with 10 additions and 23 deletions
+10 -22
View File
@@ -18,10 +18,6 @@
wxGTK32,
sioclient,
pulseSupport ? config.pulseaudio or stdenv.hostPlatform.isLinux,
AppKit,
AVFoundation,
Cocoa,
CoreMedia,
}:
stdenv.mkDerivation rec {
@@ -53,24 +49,16 @@ stdenv.mkDerivation rec {
darwin.autoSignDarwinBinariesHook
];
buildInputs =
[
codec2
libsamplerate
libsndfile
lpcnetfreedv
speexdsp
hamlib_4
wxGTK32
sioclient
]
++ (if pulseSupport then [ libpulseaudio ] else [ portaudio ])
++ lib.optionals stdenv.hostPlatform.isDarwin [
AppKit
AVFoundation
Cocoa
CoreMedia
];
buildInputs = [
codec2
libsamplerate
libsndfile
lpcnetfreedv
speexdsp
hamlib_4
wxGTK32
sioclient
] ++ (if pulseSupport then [ libpulseaudio ] else [ portaudio ]);
cmakeFlags = [
"-DUSE_INTERNAL_CODEC2:BOOL=FALSE"
-1
View File
@@ -13649,7 +13649,6 @@ with pkgs;
};
freedv = callPackage ../by-name/fr/freedv/package.nix {
inherit (darwin.apple_sdk.frameworks) AppKit AVFoundation Cocoa CoreMedia;
codec2 = codec2.override {
freedvSupport = true;
};