limesuite: add support to build without gui

This commit is contained in:
Sandro Jäckel 2022-12-21 22:11:41 +01:00
parent 51850fafcc
commit e070f9f077
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -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 = ''