Merge pull request #160153 from illdefined/freedv

freedv: extend platform support
This commit is contained in:
markuskowa 2022-03-19 12:32:51 +01:00 committed by GitHub
commit 9be97b8020
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -1,16 +1,18 @@
{ lib
{ config
, lib
, stdenv
, fetchFromGitHub
, cmake
, codec2
, libpulseaudio
, libsamplerate
, libsndfile
, lpcnetfreedv
, portaudio
, pulseaudio
, speexdsp
, hamlib
, wxGTK31-gtk3
, pulseSupport ? config.pulseaudio or stdenv.isLinux
}:
stdenv.mkDerivation rec {
@ -33,17 +35,18 @@ stdenv.mkDerivation rec {
speexdsp
hamlib
wxGTK31-gtk3
] ++ (if stdenv.isLinux then [ pulseaudio ] else [ portaudio ]);
] ++ (if pulseSupport then [ libpulseaudio ] else [ portaudio ]);
cmakeFlags = [
"-DUSE_INTERNAL_CODEC2:BOOL=FALSE"
"-DUSE_STATIC_DEPS:BOOL=FALSE"
] ++ lib.optionals stdenv.isLinux [ "-DUSE_PULSEAUDIO:BOOL=TRUE" ];
] ++ lib.optionals pulseSupport [ "-DUSE_PULSEAUDIO:BOOL=TRUE" ];
meta = with lib; {
homepage = "https://freedv.org/";
description = "Digital voice for HF radio";
license = licenses.lgpl21;
maintainers = with maintainers; [ mvs ];
platforms = platforms.unix;
};
}

View file

@ -30,5 +30,6 @@ in stdenv.mkDerivation rec {
description = "Experimental Neural Net speech coding for FreeDV";
license = licenses.bsd3;
maintainers = with maintainers; [ mvs ];
platforms = platforms.all;
};
}