about summary refs log tree commit diff
path: root/pkgs/applications/radio/csdr
diff options
context:
space:
mode:
authorAstro <astro@spaceboyz.net>2021-11-09 22:52:00 +0100
committerAstro <astro@spaceboyz.net>2021-11-10 23:42:15 +0100
commita3b504854c49e40f18dbe507559a387c7f669b9b (patch)
tree7623d6ed615d2a95570c50b34987c7bc1b0f9f83 /pkgs/applications/radio/csdr
parent06449fce5b7a6065e93c401060c7a8ea425e111a (diff)
csdr: init at 0.17.1
Diffstat (limited to 'pkgs/applications/radio/csdr')
-rw-r--r--pkgs/applications/radio/csdr/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/radio/csdr/default.nix b/pkgs/applications/radio/csdr/default.nix
new file mode 100644
index 0000000000000..9b1e75c1040fb
--- /dev/null
+++ b/pkgs/applications/radio/csdr/default.nix
@@ -0,0 +1,38 @@
+{ 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; {
+    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 ];
+  };
+}