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

49 lines
1 KiB
Nix
Raw Normal View History

{ lib, 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-11-03 07:14:23 +01:00
version = "20.10.0";
2018-04-25 20:54:41 +02:00
src = fetchFromGitHub {
owner = "myriadrf";
repo = "LimeSuite";
rev = "v${version}";
2020-11-03 07:14:23 +01:00
sha256 = "04wzfhzqmxjsa6bgcr4zd518fln9rbwnbabf48kha84d70vzkdlx";
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 lib; {
2018-04-25 20:54:41 +02:00
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;
};
}