2018-04-25 18:54:41 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake
|
|
|
|
, sqlite, wxGTK30, libusb1, soapysdr
|
|
|
|
, mesa_glu, libX11, gnuplot, fltk
|
|
|
|
} :
|
|
|
|
|
|
|
|
let
|
2019-05-22 03:16:09 +00:00
|
|
|
version = "19.04.0";
|
2018-04-25 18:54:41 +00:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "limesuite-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "myriadrf";
|
|
|
|
repo = "LimeSuite";
|
|
|
|
rev = "v${version}";
|
2019-05-22 03:16:09 +00:00
|
|
|
sha256 = "1lrjrli0ny25qwg8bw1bvbdb18hf7ffqj4ziibkgzscv3w5v0s45";
|
2018-04-25 18:54:41 +00:00
|
|
|
};
|
|
|
|
|
2018-10-08 18:40:15 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-04-25 18:54:41 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libusb1
|
|
|
|
sqlite
|
|
|
|
wxGTK30
|
|
|
|
fltk
|
|
|
|
gnuplot
|
|
|
|
libusb1
|
|
|
|
soapysdr
|
|
|
|
mesa_glu
|
|
|
|
libX11
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/lib/udev/rules.d
|
|
|
|
cp ../udev-rules/64-limesuite.rules $out/lib/udev/rules.d
|
|
|
|
|
|
|
|
mkdir -p $out/share/limesuite
|
|
|
|
cp bin/Release/lms7suite_mcu/* $out/share/limesuite
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Driver and GUI for LMS7002M-based SDR platforms";
|
|
|
|
homepage = https://github.com/myriadrf/LimeSuite;
|
2018-04-25 19:59:23 +00:00
|
|
|
license = licenses.asl20;
|
2018-04-25 18:54:41 +00:00
|
|
|
maintainers = with maintainers; [ markuskowa ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|