limesuite: add support to build without gui
This commit is contained in:
parent
51850fafcc
commit
e070f9f077
|
@ -2,6 +2,7 @@
|
|||
, sqlite, wxGTK32, libusb1, soapysdr
|
||||
, mesa_glu, libX11, gnuplot, fltk
|
||||
, GLUT
|
||||
, withGui ? true
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue