summary refs log tree commit diff
path: root/pkgs/tools/misc/kalibrate-hackrf
diff options
context:
space:
mode:
authorMatthew O'Gorman <mog@rldn.net>2016-08-27 13:26:16 -0400
committerMatthew O'Gorman <mog@rldn.net>2016-08-29 01:17:29 -0400
commit145bbbe17b316f53a4f5a13d56bb08e5dbcc3a4d (patch)
treeb1c23d0aa12159c820ff9ed6ec72d4ebef422d42 /pkgs/tools/misc/kalibrate-hackrf
parent76223aa4b2cc7ebda27a93f00829bd447701740a (diff)
downloadnixlib-145bbbe17b316f53a4f5a13d56bb08e5dbcc3a4d.tar
nixlib-145bbbe17b316f53a4f5a13d56bb08e5dbcc3a4d.tar.gz
nixlib-145bbbe17b316f53a4f5a13d56bb08e5dbcc3a4d.tar.bz2
nixlib-145bbbe17b316f53a4f5a13d56bb08e5dbcc3a4d.tar.lz
nixlib-145bbbe17b316f53a4f5a13d56bb08e5dbcc3a4d.tar.xz
nixlib-145bbbe17b316f53a4f5a13d56bb08e5dbcc3a4d.tar.zst
nixlib-145bbbe17b316f53a4f5a13d56bb08e5dbcc3a4d.zip
kalibrate-hackrf: init at 2016-08-27
Diffstat (limited to 'pkgs/tools/misc/kalibrate-hackrf')
-rw-r--r--pkgs/tools/misc/kalibrate-hackrf/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/misc/kalibrate-hackrf/default.nix b/pkgs/tools/misc/kalibrate-hackrf/default.nix
new file mode 100644
index 000000000000..0bd6f573ead0
--- /dev/null
+++ b/pkgs/tools/misc/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 ];
+  };
+}