2021-12-06 16:07:01 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, fftw, rtl-sdr, libusb1 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "kalibrate-rtl";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "unstable-2022-02-02";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "steve-m";
|
|
|
|
repo = "kalibrate-rtl";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "340003eb0846b069c3edef19ed3363b8ac7b5215";
|
|
|
|
sha256 = "n9mfu8H2OS8dKPNhtJxBfMDp8aHEIcxg/R+kcRNOBpk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ fftw rtl-sdr libusb1 ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ bjornfor viraptor ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "kal";
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|