2018-04-25 19:54:41 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake
|
|
|
|
, sqlite, wxGTK30, libusb1, soapysdr
|
|
|
|
, mesa_glu, libX11, gnuplot, fltk
|
|
|
|
} :
|
|
|
|
|
|
|
|
let
|
2018-06-19 16:05:14 +01:00
|
|
|
version = "18.06.0";
|
2018-04-25 19:54:41 +01:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "limesuite-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "myriadrf";
|
|
|
|
repo = "LimeSuite";
|
|
|
|
rev = "v${version}";
|
2018-06-19 16:05:14 +01:00
|
|
|
sha256 = "0j6mxlvij2k6ib1d9jwzvilmqgm1h0q7wy9sf8a6bvidwlphvy25";
|
2018-04-25 19:54:41 +01: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
|
|
|
|
|
|
|
|
cp bin/dualRXTX $out/bin
|
|
|
|
cp bin/basicRX $out/bin
|
|
|
|
cp bin/singleRX $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Driver and GUI for LMS7002M-based SDR platforms";
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|