about summary refs log tree commit diff
path: root/pkgs/applications/radio/sdrangel
diff options
context:
space:
mode:
authorMathieu Rene <mathieu.rene@gmail.com>2023-03-12 16:21:49 -0400
committerMathieu Rene <mathieu.rene@gmail.com>2023-03-12 17:41:55 -0400
commitab570e4a4262468034928efec5c8bd340d81191a (patch)
treef5044449b3387e096c16b65490c4ba3676061b2a /pkgs/applications/radio/sdrangel
parente4c31c2dfc82bc6d87c0537715afd63ddff0c4f1 (diff)
sdrangel: fix darwin build
Tested and changed the platform metadata for the dependent libs.
Diffstat (limited to 'pkgs/applications/radio/sdrangel')
-rw-r--r--pkgs/applications/radio/sdrangel/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/applications/radio/sdrangel/default.nix b/pkgs/applications/radio/sdrangel/default.nix
index 392088eca95f4..0bda52d425e4a 100644
--- a/pkgs/applications/radio/sdrangel/default.nix
+++ b/pkgs/applications/radio/sdrangel/default.nix
@@ -1,4 +1,6 @@
-{ airspy
+{ lib
+, stdenv
+, airspy
 , airspyhf
 , aptdec
 , boost
@@ -13,7 +15,6 @@
 , glew
 , hackrf
 , hidapi
-, lib
 , ffmpeg
 , libiio
 , libopus
@@ -95,7 +96,7 @@ mkDerivation rec {
     "-DDAB_LIB=${dab_lib}"
     "-DLIBSERIALDV_INCLUDE_DIR:PATH=${serialdv}/include/serialdv"
     "-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}"
     "-DSOAPYSDR_DIR=${soapysdr-with-plugins}"
   ];
@@ -110,6 +111,6 @@ mkDerivation rec {
     homepage = "https://github.com/f4exb/sdrangel";
     license = licenses.gpl3Plus;
     maintainers = with maintainers; [ alkeryn ];
-    platforms = platforms.linux;
+    platforms = platforms.unix;
   };
 }