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

49 lines
1 KiB
Nix
Raw Normal View History

2018-04-25 20:54:41 +02:00
{ stdenv, fetchFromGitHub, cmake
2020-06-15 05:34:25 +02:00
, sqlite, wxGTK30-gtk3, libusb1, soapysdr
2018-04-25 20:54:41 +02:00
, mesa_glu, libX11, gnuplot, fltk
} :
2020-06-15 05:34:25 +02:00
stdenv.mkDerivation rec {
2019-08-13 23:52:01 +02:00
pname = "limesuite";
2020-08-11 08:10:54 +02:00
version = "20.07.2";
2018-04-25 20:54:41 +02:00
src = fetchFromGitHub {
owner = "myriadrf";
repo = "LimeSuite";
rev = "v${version}";
2020-08-11 08:10:54 +02:00
sha256 = "0v0w0f5ff1gwpfy13x1q1jsx9xfg4s3ccg05ikpnkzj4yg6sjps1";
2018-04-25 20:54:41 +02:00
};
nativeBuildInputs = [ cmake ];
2020-06-15 05:34:25 +02:00
cmakeFlags = [
"-DOpenGL_GL_PREFERENCE=GLVND"
];
2018-04-25 20:54:41 +02:00
buildInputs = [
libusb1
sqlite
2020-06-15 05:34:25 +02:00
wxGTK30-gtk3
2018-04-25 20:54:41 +02:00
fltk
gnuplot
libusb1
soapysdr
mesa_glu
libX11
];
postInstall = ''
2020-06-15 05:34:25 +02: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 20:54:41 +02:00
'';
meta = with stdenv.lib; {
description = "Driver and GUI for LMS7002M-based SDR platforms";
homepage = "https://github.com/myriadrf/LimeSuite";
2018-04-25 21:59:23 +02:00
license = licenses.asl20;
2018-04-25 20:54:41 +02:00
maintainers = with maintainers; [ markuskowa ];
platforms = platforms.linux;
};
}