1 { lib, stdenv, fetchFromGitHub, cmake
2 , sqlite, wxGTK32, libusb1, soapysdr
3 , mesa_glu, libX11, gnuplot, fltk
8 stdenv.mkDerivation rec {
12 src = fetchFromGitHub {
16 sha256 = "sha256-f1cXrkVCIc1MqTvlCUBFqzHLhIVueybVxipNZRlF2gE=";
19 nativeBuildInputs = [ cmake ];
22 "-DOpenGL_GL_PREFERENCE=GLVND"
23 ] ++ lib.optional (!withGui) "-DENABLE_GUI=OFF";
31 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
33 ] ++ lib.optionals withGui [
41 install -Dm444 -t $out/lib/udev/rules.d ../udev-rules/64-limesuite.rules
42 install -Dm444 -t $out/share/limesuite bin/Release/lms7suite_mcu/*
46 description = "Driver and GUI for LMS7002M-based SDR platforms";
47 homepage = "https://github.com/myriadrf/LimeSuite";
48 license = licenses.asl20;
49 maintainers = with maintainers; [ markuskowa ];
50 platforms = platforms.unix;
51 badPlatforms = lib.optionals withGui platforms.darwin; # withGui transitively depends on mesa, which is broken on darwin