18 stdenv.mkDerivation rec {
22 src = fetchFromGitHub {
26 sha256 = "sha256-f1cXrkVCIc1MqTvlCUBFqzHLhIVueybVxipNZRlF2gE=";
29 nativeBuildInputs = [ cmake ];
32 "-DOpenGL_GL_PREFERENCE=GLVND"
33 ] ++ lib.optional (!withGui) "-DENABLE_GUI=OFF";
43 ++ lib.optionals stdenv.hostPlatform.isDarwin [
46 ++ lib.optionals withGui [
54 install -Dm444 -t $out/lib/udev/rules.d ../udev-rules/64-limesuite.rules
55 install -Dm444 -t $out/share/limesuite bin/Release/lms7suite_mcu/*
59 description = "Driver and GUI for LMS7002M-based SDR platforms";
60 homepage = "https://github.com/myriadrf/LimeSuite";
61 license = licenses.asl20;
62 maintainers = with maintainers; [ markuskowa ];
63 platforms = platforms.unix;
64 badPlatforms = lib.optionals withGui platforms.darwin; # withGui transitively depends on mesa, which is broken on darwin