2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchgit, autoreconfHook, pkgconfig, fftw, rtl-sdr, libusb1 }:
|
2014-05-12 18:47:54 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2014-05-12 18:47:54 +01:00
|
|
|
name = "kalibrate-rtl-20131214";
|
|
|
|
|
|
|
|
# There are no tags/releases, so use the latest commit from git master.
|
|
|
|
# Currently, the latest commit is from 2013-12-14.
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/steve-m/kalibrate-rtl.git";
|
|
|
|
rev = "aae11c8a8dc79692a94ccfee39ba01e8c8c05d38";
|
|
|
|
sha256 = "1spbfflkqnw9s8317ppsf7b1nnkicqsmaqsnz1zf8i49ix70i6kn";
|
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ fftw rtl-sdr libusb1 ];
|
2014-05-12 18:47:54 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-05-12 18:47:54 +01: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 02:11:51 +01:00
|
|
|
homepage = "https://github.com/steve-m/kalibrate-rtl";
|
2014-05-12 18:47:54 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|