2021-01-17 02:09:27 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, fftw, hackrf, libusb1 }:
|
2016-08-27 18:26:16 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2021-11-07 13:50:48 +00:00
|
|
|
pname = "kalibrate-hackrf";
|
|
|
|
version = "unstable-2016-08-27";
|
2016-08-27 18:26:16 +01:00
|
|
|
|
|
|
|
# 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";
|
|
|
|
};
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2016-08-27 18:26:16 +01:00
|
|
|
|
|
|
|
buildInputs = [ fftw hackrf libusb1 ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/kal $out/bin/kal-hackrf
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-08-27 18:26:16 +01:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/scateu/kalibrate-hackrf";
|
2016-08-27 18:26:16 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.mog ];
|
|
|
|
};
|
|
|
|
}
|