1 { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, fftw, hackrf, libusb1 }:
4 pname = "kalibrate-hackrf";
5 version = "unstable-2016-08-27";
7 # There are no tags/releases, so use the latest commit from git master.
8 # Currently, the latest commit is from 2016-07-03.
9 src = fetchFromGitHub {
11 repo = "kalibrate-hackrf";
12 rev = "2492c20822ca6a49dce97967caf394b1d4b2c43e";
13 sha256 = "1jvn1qx7csgycxpx1k804sm9gk5a0c65z9gh8ybp9awq3pziv0nx";
16 nativeBuildInputs = [ autoreconfHook pkg-config ];
18 buildInputs = [ fftw hackrf libusb1 ];
21 mv $out/bin/kal $out/bin/kal-hackrf
25 description = "Calculate local oscillator frequency offset in hackrf devices";
27 Kalibrate, or kal, can scan for GSM base stations in a given frequency
28 band and can use those GSM base stations to calculate the local
29 oscillator frequency offset.
31 This package is for hackrf devices.
33 homepage = "https://github.com/scateu/kalibrate-hackrf";
34 license = licenses.bsd2;
35 platforms = platforms.linux;
36 maintainers = [ maintainers.mog ];