2021-11-09 09:20:37 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, fftw, rtl-sdr, libusb1 }:
|
2014-05-12 17:47:54 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-11-07 13:50:48 +00:00
|
|
|
pname = "kalibrate-rtl";
|
2022-04-27 23:51:37 +00:00
|
|
|
version = "unstable-2022-02-02";
|
2014-05-12 17:47:54 +00:00
|
|
|
|
2021-11-09 09:20:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "steve-m";
|
|
|
|
repo = "kalibrate-rtl";
|
2022-04-27 23:51:37 +00:00
|
|
|
rev = "340003eb0846b069c3edef19ed3363b8ac7b5215";
|
|
|
|
sha256 = "n9mfu8H2OS8dKPNhtJxBfMDp8aHEIcxg/R+kcRNOBpk=";
|
2014-05-12 17:47:54 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2021-11-09 09:20:37 +00:00
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ fftw rtl-sdr libusb1 ];
|
2014-05-12 17:47:54 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-05-12 17:47:54 +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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/steve-m/kalibrate-rtl";
|
2014-05-12 17:47:54 +00:00
|
|
|
license = licenses.bsd2;
|
2022-04-28 00:21:15 +00:00
|
|
|
maintainers = with maintainers; [ bjornfor viraptor ];
|
2022-05-05 00:46:39 +00:00
|
|
|
mainProgram = "kal";
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2014-05-12 17:47:54 +00:00
|
|
|
};
|
|
|
|
}
|