diff options
author | Jörg Thalheim <joerg@higgsboson.tk> | 2016-10-01 17:44:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-01 17:44:18 +0200 |
commit | 46693bd6e824ead3cf46c3deace190969a249010 (patch) | |
tree | 5334fb1febbfc118ae2c163e6489890cc000ee80 /pkgs/tools/misc | |
parent | 98a8146428b28354182dbe1eff78e3f540f565a6 (diff) | |
parent | 145bbbe17b316f53a4f5a13d56bb08e5dbcc3a4d (diff) | |
download | nixlib-46693bd6e824ead3cf46c3deace190969a249010.tar nixlib-46693bd6e824ead3cf46c3deace190969a249010.tar.gz nixlib-46693bd6e824ead3cf46c3deace190969a249010.tar.bz2 nixlib-46693bd6e824ead3cf46c3deace190969a249010.tar.lz nixlib-46693bd6e824ead3cf46c3deace190969a249010.tar.xz nixlib-46693bd6e824ead3cf46c3deace190969a249010.tar.zst nixlib-46693bd6e824ead3cf46c3deace190969a249010.zip |
Merge pull request #18043 from mogorman/kalibrate-hackrf
kalibrate-hackrf: init at 2016-08-27
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/kalibrate-hackrf/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/misc/kalibrate-hackrf/default.nix b/pkgs/tools/misc/kalibrate-hackrf/default.nix new file mode 100644 index 000000000000..0bd6f573ead0 --- /dev/null +++ b/pkgs/tools/misc/kalibrate-hackrf/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, fftw, hackrf, libusb1 }: + +stdenv.mkDerivation rec { + name = "kalibrate-hackrf-unstable-20160827"; + + # 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"; + }; + + nativeBuildInputs = [ autoreconfHook pkgconfig ]; + + buildInputs = [ fftw hackrf libusb1 ]; + + postInstall = '' + mv $out/bin/kal $out/bin/kal-hackrf + ''; + + meta = with stdenv.lib; { + 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. + ''; + homepage = https://github.com/scateu/kalibrate-hackrf; + license = licenses.bsd2; + platforms = platforms.linux; + maintainers = [ maintainers.mog ]; + }; +} |