diff options
author | Stanisław Pitucha <git@viraptor.info> | 2023-10-17 15:10:39 +1100 |
---|---|---|
committer | Stanisław Pitucha <git@viraptor.info> | 2023-10-17 15:10:39 +1100 |
commit | ea8ed233faa9751b7ac54f7547e47de9e9c60e1a (patch) | |
tree | 7775d8e1a6aaf37290b1632c6fd426dccdfd20e5 /pkgs/by-name | |
parent | 108a0952039146aefa1a03c911e88f7880cc0d3b (diff) |
fm-tune: migrate to by-name
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/fm/fm-tune/package.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/by-name/fm/fm-tune/package.nix b/pkgs/by-name/fm/fm-tune/package.nix new file mode 100644 index 0000000000000..59c61dc4ed5bb --- /dev/null +++ b/pkgs/by-name/fm/fm-tune/package.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"; + }; +} |