nixpkgs/pkgs/applications/radio/limesuite/default.nix

49 lines
1.0 KiB
Nix
Raw Normal View History

2018-04-25 18:54:41 +00:00
{ stdenv, fetchFromGitHub, cmake
2020-06-15 03:34:25 +00:00
, sqlite, wxGTK30-gtk3, libusb1, soapysdr
2018-04-25 18:54:41 +00:00
, mesa_glu, libX11, gnuplot, fltk
} :
2020-06-15 03:34:25 +00:00
stdenv.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "limesuite";
2020-08-11 06:10:54 +00:00
version = "20.07.2";
2018-04-25 18:54:41 +00:00
src = fetchFromGitHub {
owner = "myriadrf";
repo = "LimeSuite";
rev = "v${version}";
2020-08-11 06:10:54 +00:00
sha256 = "0v0w0f5ff1gwpfy13x1q1jsx9xfg4s3ccg05ikpnkzj4yg6sjps1";
2018-04-25 18:54:41 +00:00
};
nativeBuildInputs = [ cmake ];
2020-06-15 03:34:25 +00:00
cmakeFlags = [
"-DOpenGL_GL_PREFERENCE=GLVND"
];
2018-04-25 18:54:41 +00:00
buildInputs = [
libusb1
sqlite
2020-06-15 03:34:25 +00:00
wxGTK30-gtk3
2018-04-25 18:54:41 +00:00
fltk
gnuplot
libusb1
soapysdr
mesa_glu
libX11
];
postInstall = ''
2020-06-15 03:34:25 +00: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 18:54:41 +00:00
'';
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;
};
}