about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/gnuradio-modules/ais/default.nix
blob: 8155f39ee6891e447bb1795f808a0b587a68530e (plain) (blame)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{ lib
, mkDerivation
, fetchFromGitHub
, cmake
, pkg-config
, python
, boost
, cppunit
, logLib
, osmosdr
, gmp
, mpir
, fftwFloat
, icu
, gnuradio
, thrift
, gnuradioAtLeast
}:

mkDerivation rec {
  pname = "gr-ais";
  version = "2020-08-13";
  src = fetchFromGitHub {
    owner = "bistromath";
    repo = "gr-ais";
    rev = "2162103226f3dae43c8c2ab23b79483b84346665";
    sha256 = "1vackka34722d8pcspfwj0j6gc9ic7dqq64sgkrpjm94sh3bmb0b";
  };
  disabled = gnuradioAtLeast "3.9";

  nativeBuildInputs = [
    cmake
    pkg-config
    python
  ];

  cmakeFlags = [
    "-DCMAKE_EXE_LINKER_FLAGS=-pthread"
  ];

  buildInputs = [
    cppunit
    osmosdr
    boost
    logLib
    gmp
    mpir
    fftwFloat
    icu
    thrift
    gnuradio.python.pkgs.thrift
  ];

  meta = with lib; {
    description = "Gnuradio block for ais";
    mainProgram = "ais_rx";
    homepage = "https://github.com/bistromath/gr-ais";
    license = licenses.gpl3Plus;
    platforms = platforms.unix;
    maintainers = with maintainers; [ mog ];
  };
}