2018-04-25 19:54:41 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake
|
2020-06-15 04:34:25 +01:00
|
|
|
, sqlite, wxGTK30-gtk3, libusb1, soapysdr
|
2018-04-25 19:54:41 +01:00
|
|
|
, mesa_glu, libX11, gnuplot, fltk
|
|
|
|
} :
|
|
|
|
|
2020-06-15 04:34:25 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "limesuite";
|
2020-08-11 07:10:54 +01:00
|
|
|
version = "20.07.2";
|
2018-04-25 19:54:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "myriadrf";
|
|
|
|
repo = "LimeSuite";
|
|
|
|
rev = "v${version}";
|
2020-08-11 07:10:54 +01:00
|
|
|
sha256 = "0v0w0f5ff1gwpfy13x1q1jsx9xfg4s3ccg05ikpnkzj4yg6sjps1";
|
2018-04-25 19:54:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2020-06-15 04:34:25 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DOpenGL_GL_PREFERENCE=GLVND"
|
|
|
|
];
|
|
|
|
|
2018-04-25 19:54:41 +01:00
|
|
|
buildInputs = [
|
|
|
|
libusb1
|
|
|
|
sqlite
|
2020-06-15 04:34:25 +01:00
|
|
|
wxGTK30-gtk3
|
2018-04-25 19:54:41 +01:00
|
|
|
fltk
|
|
|
|
gnuplot
|
|
|
|
libusb1
|
|
|
|
soapysdr
|
|
|
|
mesa_glu
|
|
|
|
libX11
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-06-15 04:34:25 +01:00
|
|
|
install -Dm444 -t $out/lib/udev/rules.d ../udev-rules/64-limesuite.rules
|
|
|
|
install -Dm444 -t $out/share/limesuite bin/Release/lms7suite_mcu/*
|
2018-04-25 19:54:41 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Driver and GUI for LMS7002M-based SDR platforms";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/myriadrf/LimeSuite";
|
2018-04-25 20:59:23 +01:00
|
|
|
license = licenses.asl20;
|
2018-04-25 19:54:41 +01:00
|
|
|
maintainers = with maintainers; [ markuskowa ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|