mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
limesuite: add support to build without gui
This commit is contained in:
parent
51850fafcc
commit
e070f9f077
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user