3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/radio/limesuite/default.nix
2020-01-30 22:19:22 -08:00

53 lines
1 KiB
Nix

{ stdenv, fetchFromGitHub, cmake
, sqlite, wxGTK30, libusb1, soapysdr
, mesa_glu, libX11, gnuplot, fltk
} :
let
version = "20.01.0";
in stdenv.mkDerivation {
pname = "limesuite";
inherit version;
src = fetchFromGitHub {
owner = "myriadrf";
repo = "LimeSuite";
rev = "v${version}";
sha256 = "01z4idcby2lm34bbnpbp400ski7p61jjiir6sy6dalnvsl52m7vx";
};
enableParallelBuilding = true;
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;
license = licenses.asl20;
maintainers = with maintainers; [ markuskowa ];
platforms = platforms.linux;
};
}