summary refs log tree commit diff
path: root/pkgs/applications/radio/csdr/default.nix
blob: ed1a52276948a490a6ada9e094c295393c013240 (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
{ stdenv, lib, fetchFromGitHub
, autoreconfHook, pkg-config, fftwFloat, libsamplerate
}:

stdenv.mkDerivation rec {
  pname = "csdr";
  version = "0.17.1";

  src = fetchFromGitHub {
    owner = "jketterl";
    repo = pname;
    rev = version;
    sha256 = "1vip5a3xgskcwba3xi66zfr986xrsch9na7my818cm8vw345y57b";
  };

  patchPhase = ''
    substituteInPlace configure.ac \
      --replace -Wformat=0 ""
  '';

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
  ];

  buildInputs = [
    fftwFloat
    libsamplerate
  ];

  meta = with lib; {
    broken = stdenv.isDarwin;
    homepage = "https://github.com/jketterl/csdr";
    description = "A simple DSP library and command-line tool for Software Defined Radio";
    license = licenses.gpl3Only;
    platforms = platforms.unix;
    maintainers = with maintainers; [ astro ];
  };
}