about summary refs log tree commit diff
path: root/pkgs/applications/radio
diff options
context:
space:
mode:
authorStanisław Pitucha <viraptor@gmail.com>2022-05-02 21:49:50 +1000
committerStanisław Pitucha <git@viraptor.info>2023-07-08 15:37:44 +1000
commit2b3fd11c30f5988f64ea71af4319b7783870843f (patch)
treefcd4627343e618106f04ab6a45bd08afd1186c92 /pkgs/applications/radio
parentd4d822f526f1f72a450da88bf35abe132181170f (diff)
fm-tune: init at 1.1
Add the fm_tune application for initial sdr tuning.
Diffstat (limited to 'pkgs/applications/radio')
-rw-r--r--pkgs/applications/radio/fm-tune/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/radio/fm-tune/default.nix b/pkgs/applications/radio/fm-tune/default.nix
new file mode 100644
index 0000000000000..59c61dc4ed5bb
--- /dev/null
+++ b/pkgs/applications/radio/fm-tune/default.nix
@@ -0,0 +1,32 @@
+{ lib, stdenv, fetchFromGitHub, pkg-config, liquid-dsp, soapysdr }:
+
+stdenv.mkDerivation rec {
+  pname = "fm-tune";
+  version = "1.1";
+
+  src = fetchFromGitHub {
+    owner = "viraptor";
+    repo = "fm_tune";
+    rev = version;
+    sha256 = "pwL2G1Ni1Ixw/N0diSoGGIoVrtmF92mWZ5i57OOvkX4=";
+  };
+
+  nativeBuildInputs = [ pkg-config ];
+
+  buildInputs = [ liquid-dsp soapysdr ];
+
+  meta = with lib; {
+    description = "Find initial calibration offset for SDR devices";
+    longDescription = ''
+      fm_tune finds the initial offset for calibrating an SDR device. This is
+      based a given FM radio station frequency. The offset given by this tool is
+      not precise, but can be useful as a starting point for other tools which
+      cannot correct for very large errors.
+    '';
+    homepage = "https://github.com/viraptor/fm_tune";
+    license = licenses.asl20;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ viraptor ];
+    mainProgram = "fm_tune";
+  };
+}