limesuite: add support to build without gui
This commit is contained in:
parent
51850fafcc
commit
e070f9f077
|
@ -2,7 +2,8 @@
|
||||||
, sqlite, wxGTK32, libusb1, soapysdr
|
, sqlite, wxGTK32, libusb1, soapysdr
|
||||||
, mesa_glu, libX11, gnuplot, fltk
|
, mesa_glu, libX11, gnuplot, fltk
|
||||||
, GLUT
|
, GLUT
|
||||||
} :
|
, withGui ? true
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "limesuite";
|
pname = "limesuite";
|
||||||
|
@ -19,20 +20,21 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DOpenGL_GL_PREFERENCE=GLVND"
|
"-DOpenGL_GL_PREFERENCE=GLVND"
|
||||||
];
|
] ++ lib.optional (!withGui) "-DENABLE_GUI=OFF";
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libusb1
|
libusb1
|
||||||
sqlite
|
sqlite
|
||||||
wxGTK32
|
|
||||||
fltk
|
|
||||||
gnuplot
|
gnuplot
|
||||||
libusb1
|
libusb1
|
||||||
soapysdr
|
soapysdr
|
||||||
mesa_glu
|
|
||||||
libX11
|
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
GLUT
|
GLUT
|
||||||
|
] ++ lib.optionals withGui [
|
||||||
|
fltk
|
||||||
|
libX11
|
||||||
|
mesa_glu
|
||||||
|
wxGTK32
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
|
Loading…
Reference in a new issue