48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, cmake
|
|
, sqlite, wxGTK30-gtk3, libusb1, soapysdr
|
|
, mesa_glu, libX11, gnuplot, fltk
|
|
} :
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "limesuite";
|
|
version = "20.07.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "myriadrf";
|
|
repo = "LimeSuite";
|
|
rev = "v${version}";
|
|
sha256 = "0v0w0f5ff1gwpfy13x1q1jsx9xfg4s3ccg05ikpnkzj4yg6sjps1";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags = [
|
|
"-DOpenGL_GL_PREFERENCE=GLVND"
|
|
];
|
|
|
|
buildInputs = [
|
|
libusb1
|
|
sqlite
|
|
wxGTK30-gtk3
|
|
fltk
|
|
gnuplot
|
|
libusb1
|
|
soapysdr
|
|
mesa_glu
|
|
libX11
|
|
];
|
|
|
|
postInstall = ''
|
|
install -Dm444 -t $out/lib/udev/rules.d ../udev-rules/64-limesuite.rules
|
|
install -Dm444 -t $out/share/limesuite bin/Release/lms7suite_mcu/*
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|
|
|