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

49 lines
1.0 KiB
Nix
Raw Normal View History

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