sdrangel: fix darwin build

Tested and changed the platform metadata for the dependent libs.
This commit is contained in:
Mathieu Rene 2023-03-12 16:21:49 -04:00
parent e4c31c2dfc
commit ab570e4a42
8 changed files with 13 additions and 12 deletions

View file

@ -1,4 +1,6 @@
{ airspy { lib
, stdenv
, airspy
, airspyhf , airspyhf
, aptdec , aptdec
, boost , boost
@ -13,7 +15,6 @@
, glew , glew
, hackrf , hackrf
, hidapi , hidapi
, lib
, ffmpeg , ffmpeg
, libiio , libiio
, libopus , libopus
@ -95,7 +96,7 @@ mkDerivation rec {
"-DDAB_LIB=${dab_lib}" "-DDAB_LIB=${dab_lib}"
"-DLIBSERIALDV_INCLUDE_DIR:PATH=${serialdv}/include/serialdv" "-DLIBSERIALDV_INCLUDE_DIR:PATH=${serialdv}/include/serialdv"
"-DLIMESUITE_INCLUDE_DIR:PATH=${limesuite}/include" "-DLIMESUITE_INCLUDE_DIR:PATH=${limesuite}/include"
"-DLIMESUITE_LIBRARY:FILEPATH=${limesuite}/lib/libLimeSuite.so" "-DLIMESUITE_LIBRARY:FILEPATH=${limesuite}/lib/libLimeSuite${stdenv.hostPlatform.extensions.sharedLibrary}"
"-DSGP4_DIR=${sgp4}" "-DSGP4_DIR=${sgp4}"
"-DSOAPYSDR_DIR=${soapysdr-with-plugins}" "-DSOAPYSDR_DIR=${soapysdr-with-plugins}"
]; ];
@ -110,6 +111,6 @@ mkDerivation rec {
homepage = "https://github.com/f4exb/sdrangel"; homepage = "https://github.com/f4exb/sdrangel";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; [ alkeryn ]; maintainers = with maintainers; [ alkeryn ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }

View file

@ -26,6 +26,6 @@ stdenv.mkDerivation {
homepage = "https://github.com/Xerbo/aptdec"; homepage = "https://github.com/Xerbo/aptdec";
license = licenses.gpl2; license = licenses.gpl2;
maintainers = with maintainers; [ alexwinter ]; maintainers = with maintainers; [ alexwinter ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }

View file

@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
description = "Fast GF(256) Cauchy MDS Block Erasure Codec in C++"; description = "Fast GF(256) Cauchy MDS Block Erasure Codec in C++";
homepage = "https://github.com/f4exb/cm256cc"; homepage = "https://github.com/f4exb/cm256cc";
platforms = platforms.linux; platforms = platforms.unix;
maintainers = with maintainers; [ alkeryn ]; maintainers = with maintainers; [ alkeryn ];
license = licenses.gpl3; license = licenses.gpl3;
}; };

View file

@ -23,6 +23,6 @@ stdenv.mkDerivation {
homepage = "https://github.com/JvanKatwijk/dab-cmdline"; homepage = "https://github.com/JvanKatwijk/dab-cmdline";
license = licenses.gpl2; license = licenses.gpl2;
maintainers = with maintainers; [ alexwinter ]; maintainers = with maintainers; [ alexwinter ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }

View file

@ -30,6 +30,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/f4exb/dsdcc"; homepage = "https://github.com/f4exb/dsdcc";
license = licenses.gpl3; license = licenses.gpl3;
maintainers = with maintainers; [ alexwinter ]; maintainers = with maintainers; [ alexwinter ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }

View file

@ -1,9 +1,9 @@
{ qtModule, speechd, pkg-config }: { lib, qtModule, stdenv, speechd, pkg-config }:
qtModule { qtModule {
pname = "qtspeech"; pname = "qtspeech";
qtInputs = [ ]; qtInputs = [ ];
buildInputs = [ speechd ]; buildInputs = lib.optionals stdenv.isLinux [ speechd ];
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
} }

View file

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
description = "C++ Minimal interface to encode and decode audio with AMBE3000 based devices in packet mode over a serial link"; description = "C++ Minimal interface to encode and decode audio with AMBE3000 based devices in packet mode over a serial link";
homepage = "https://github.com/f4exb/serialdv"; homepage = "https://github.com/f4exb/serialdv";
platforms = platforms.linux; platforms = platforms.unix;
maintainers = with maintainers; [ alkeryn ]; maintainers = with maintainers; [ alkeryn ];
license = licenses.gpl3; license = licenses.gpl3;
}; };

View file

@ -18,6 +18,6 @@ stdenv.mkDerivation {
homepage = "https://github.com/dnwrnr/sgp4"; homepage = "https://github.com/dnwrnr/sgp4";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ alexwinter ]; maintainers = with maintainers; [ alexwinter ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }