aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/radio/gnuradio/limesdr.nix
blob: 490caaaa7beabcdcc73357fc9fd6c18cefecdf78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ 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 {
  pname = "gr-limesdr";
  inherit 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 ];
  };
}