about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-12-24 02:06:36 +0100
committerGitHub <noreply@github.com>2022-12-24 02:06:36 +0100
commit9572cd9622120f794e1d979e4cd4de96c7494927 (patch)
treec7502a349ef81067b6f29e1b0393aa81d5217424
parent8f08a7ad8562998f3cb34646e7acdafc274334ef (diff)
parenta3f2e4a25611f24035d6ad6679232586559af6ad (diff)
Merge pull request #207159 from SuperSandro2000/nox-sdr
-rw-r--r--nixos/modules/config/no-x-libs.nix2
-rw-r--r--pkgs/applications/radio/limesuite/default.nix14
2 files changed, 10 insertions, 6 deletions
diff --git a/nixos/modules/config/no-x-libs.nix b/nixos/modules/config/no-x-libs.nix
index 5a2a1a0e8ac83..70e265a65a60c 100644
--- a/nixos/modules/config/no-x-libs.nix
+++ b/nixos/modules/config/no-x-libs.nix
@@ -33,10 +33,12 @@ with lib;
       ffmpeg_4 = super.ffmpeg_4-headless;
       ffmpeg_5 = super.ffmpeg_5-headless;
       gobject-introspection = super.gobject-introspection.override { x11Support = false; };
+      gpsd = super.gpsd.override { guiSupport = false; };
       imagemagick = super.imagemagick.override { libX11Support = false; libXtSupport = false; };
       imagemagickBig = super.imagemagickBig.override { libX11Support = false; libXtSupport = false; };
       libextractor = super.libextractor.override { gstreamerSupport = false; gtkSupport = false; };
       libva = super.libva-minimal;
+      limesuite = super.limesuite.override { withGui = false; };
       msmtp = super.msmtp.override { withKeyring = false; };
       networkmanager-fortisslvpn = super.networkmanager-fortisslvpn.override { withGnome = false; };
       networkmanager-iodine = super.networkmanager-iodine.override { withGnome = false; };
diff --git a/pkgs/applications/radio/limesuite/default.nix b/pkgs/applications/radio/limesuite/default.nix
index 3eafadce114ad..ed4c797fac474 100644
--- a/pkgs/applications/radio/limesuite/default.nix
+++ b/pkgs/applications/radio/limesuite/default.nix
@@ -2,7 +2,8 @@
 , sqlite, wxGTK32, libusb1, soapysdr
 , mesa_glu, libX11, gnuplot, fltk
 , GLUT
-} :
+, withGui ? true
+}:
 
 stdenv.mkDerivation rec {
   pname = "limesuite";
@@ -19,20 +20,21 @@ stdenv.mkDerivation rec {
 
   cmakeFlags = [
     "-DOpenGL_GL_PREFERENCE=GLVND"
-  ];
+  ] ++ lib.optional (!withGui) "-DENABLE_GUI=OFF";
 
   buildInputs = [
     libusb1
     sqlite
-    wxGTK32
-    fltk
     gnuplot
     libusb1
     soapysdr
-    mesa_glu
-    libX11
   ] ++ lib.optionals stdenv.isDarwin [
     GLUT
+  ] ++ lib.optionals withGui [
+    fltk
+    libX11
+    mesa_glu
+    wxGTK32
   ];
 
   postInstall = ''