summary refs log tree commit diff
path: root/pkgs/applications/radio
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2019-02-09 19:55:20 +0100
committerElis Hirwing <elis@hirwing.se>2019-02-09 21:40:08 +0100
commit8a17826eed56aa1e19e867e382dc105ee238fe65 (patch)
tree0f7277d0227c9d2a9b0ce670e00cde80f2ea4dd2 /pkgs/applications/radio
parent412aaf5aa810da4e788ec13c7c48305973ca45f1 (diff)
downloadnixpkgs-8a17826eed56aa1e19e867e382dc105ee238fe65.tar
nixpkgs-8a17826eed56aa1e19e867e382dc105ee238fe65.tar.gz
nixpkgs-8a17826eed56aa1e19e867e382dc105ee238fe65.tar.bz2
nixpkgs-8a17826eed56aa1e19e867e382dc105ee238fe65.tar.lz
nixpkgs-8a17826eed56aa1e19e867e382dc105ee238fe65.tar.xz
nixpkgs-8a17826eed56aa1e19e867e382dc105ee238fe65.tar.zst
nixpkgs-8a17826eed56aa1e19e867e382dc105ee238fe65.zip
kalibrate-hackrf: Move from misc to radio
Diffstat (limited to 'pkgs/applications/radio')
-rw-r--r--pkgs/applications/radio/kalibrate-hackrf/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/radio/kalibrate-hackrf/default.nix b/pkgs/applications/radio/kalibrate-hackrf/default.nix
new file mode 100644
index 00000000000..0bd6f573ead
--- /dev/null
+++ b/pkgs/applications/radio/kalibrate-hackrf/default.nix
@@ -0,0 +1,37 @@
+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, fftw, hackrf, libusb1 }:
+
+stdenv.mkDerivation rec {
+  name = "kalibrate-hackrf-unstable-20160827";
+
+  # There are no tags/releases, so use the latest commit from git master.
+  # Currently, the latest commit is from 2016-07-03.
+  src = fetchFromGitHub {
+    owner = "scateu";
+    repo = "kalibrate-hackrf";
+    rev = "2492c20822ca6a49dce97967caf394b1d4b2c43e";
+    sha256 = "1jvn1qx7csgycxpx1k804sm9gk5a0c65z9gh8ybp9awq3pziv0nx";
+  };
+
+  nativeBuildInputs = [ autoreconfHook pkgconfig ];
+
+  buildInputs = [ fftw hackrf libusb1 ];
+
+  postInstall = ''
+    mv $out/bin/kal $out/bin/kal-hackrf
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Calculate local oscillator frequency offset in hackrf 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 hackrf devices.
+    '';
+    homepage = https://github.com/scateu/kalibrate-hackrf;
+    license = licenses.bsd2;
+    platforms = platforms.linux;
+    maintainers = [ maintainers.mog ];
+  };
+}