From 7bbe7e34a70f5d87b5e169b406dd536123ded3e4 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sat, 9 Feb 2019 19:58:52 +0100 Subject: kalibrate-rtl: Move from misc to radio --- pkgs/applications/radio/kalibrate-rtl/default.nix | 31 +++++++++++++++++++++++ pkgs/tools/misc/kalibrate-rtl/default.nix | 31 ----------------------- pkgs/top-level/all-packages.nix | 2 +- 3 files changed, 32 insertions(+), 32 deletions(-) create mode 100644 pkgs/applications/radio/kalibrate-rtl/default.nix delete mode 100644 pkgs/tools/misc/kalibrate-rtl/default.nix (limited to 'pkgs') diff --git a/pkgs/applications/radio/kalibrate-rtl/default.nix b/pkgs/applications/radio/kalibrate-rtl/default.nix new file mode 100644 index 000000000000..19ebd05e23c1 --- /dev/null +++ b/pkgs/applications/radio/kalibrate-rtl/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchgit, autoreconfHook, pkgconfig, fftw, rtl-sdr, libusb1 }: + +stdenv.mkDerivation rec { + name = "kalibrate-rtl-20131214"; + + # There are no tags/releases, so use the latest commit from git master. + # Currently, the latest commit is from 2013-12-14. + src = fetchgit { + url = "https://github.com/steve-m/kalibrate-rtl.git"; + rev = "aae11c8a8dc79692a94ccfee39ba01e8c8c05d38"; + sha256 = "1spbfflkqnw9s8317ppsf7b1nnkicqsmaqsnz1zf8i49ix70i6kn"; + }; + + nativeBuildInputs = [ autoreconfHook pkgconfig ]; + buildInputs = [ fftw rtl-sdr libusb1 ]; + + meta = with stdenv.lib; { + description = "Calculate local oscillator frequency offset in RTL-SDR devices"; + longDescription = '' + Kalibrate, or kal, can scan for GSM base stations in a given frequency + band and can use those GSM base stations to calculate the local + oscillator frequency offset. + + This package is for RTL-SDR devices. + ''; + homepage = https://github.com/steve-m/kalibrate-rtl; + license = licenses.bsd2; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; +} diff --git a/pkgs/tools/misc/kalibrate-rtl/default.nix b/pkgs/tools/misc/kalibrate-rtl/default.nix deleted file mode 100644 index 19ebd05e23c1..000000000000 --- a/pkgs/tools/misc/kalibrate-rtl/default.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ stdenv, fetchgit, autoreconfHook, pkgconfig, fftw, rtl-sdr, libusb1 }: - -stdenv.mkDerivation rec { - name = "kalibrate-rtl-20131214"; - - # There are no tags/releases, so use the latest commit from git master. - # Currently, the latest commit is from 2013-12-14. - src = fetchgit { - url = "https://github.com/steve-m/kalibrate-rtl.git"; - rev = "aae11c8a8dc79692a94ccfee39ba01e8c8c05d38"; - sha256 = "1spbfflkqnw9s8317ppsf7b1nnkicqsmaqsnz1zf8i49ix70i6kn"; - }; - - nativeBuildInputs = [ autoreconfHook pkgconfig ]; - buildInputs = [ fftw rtl-sdr libusb1 ]; - - meta = with stdenv.lib; { - description = "Calculate local oscillator frequency offset in RTL-SDR devices"; - longDescription = '' - Kalibrate, or kal, can scan for GSM base stations in a given frequency - band and can use those GSM base stations to calculate the local - oscillator frequency offset. - - This package is for RTL-SDR devices. - ''; - homepage = https://github.com/steve-m/kalibrate-rtl; - license = licenses.bsd2; - platforms = platforms.linux; - maintainers = [ maintainers.bjornfor ]; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 34a70191e9b9..31625ba517c7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3585,7 +3585,7 @@ in kazam = callPackage ../applications/video/kazam { }; - kalibrate-rtl = callPackage ../tools/misc/kalibrate-rtl { }; + kalibrate-rtl = callPackage ../applications/radio/kalibrate-rtl { }; kalibrate-hackrf = callPackage ../applications/radio/kalibrate-hackrf { }; -- cgit 1.4.1