2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 04:33:57 +00:00
nixpkgs/pkgs/applications/radio/gnuradio/limesdr.nix
Markus Kowalewski 069167de8a
gnuradio: rename plugins gnuradio-* -> gr-*
* harmonize plugin names with repology
* added aliases to maintain backwards compatability
2019-05-27 14:26:31 +02:00

40 lines
954 B
Nix

{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, gnuradio
, pythonSupport ? true, python, swig, limesuite
} :
assert pythonSupport -> python != null && swig != null;
let
version = "2.0.0";
in stdenv.mkDerivation rec {
name = "gr-limesdr-${version}";
src = fetchFromGitHub {
owner = "myriadrf";
repo = "gr-limesdr";
rev = "v${version}";
sha256 = "0ldqvfwl0gil89l9s31fjf9d7ki0dk572i8vna336igfaz348ypq";
};
nativeBuildInputs = [
cmake
pkgconfig
] ++ stdenv.lib.optionals pythonSupport [ swig ];
buildInputs = [
boost gnuradio limesuite
] ++ stdenv.lib.optionals pythonSupport [ python ];
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Gnuradio source and sink blocks for LimeSDR";
homepage = https://wiki.myriadrf.org/Gr-limesdr_Plugin_for_GNURadio;
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ maintainers.markuskowa ];
};
}