git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #18043 from mogorman/kalibrate-hackrf

kalibrate-hackrf: init at 2016-08-27

commit46693bd6e824ead3cf46c3deace190969a249010 authorJörg Thalheim <joerg@higgsboson.tk> dateSat 1 Oct 2016, 17:44 (10 years ago) parent98a8146145bbbe
2 files changed+39
pkgs/tools/misc/kalibrate-hackrf/default.nix+37 pkgs/top-level/all-packages.nix+2
pkgs/tools/misc/kalibrate-hackrf/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, fftw, hackrf, libusb1 }:
2+
3+stdenv.mkDerivation rec {
4+ name = "kalibrate-hackrf-unstable-20160827";
5+
6+ # There are no tags/releases, so use the latest commit from git master.
7+ # Currently, the latest commit is from 2016-07-03.
8+ src = fetchFromGitHub {
9+ owner = "scateu";
10+ repo = "kalibrate-hackrf";
11+ rev = "2492c20822ca6a49dce97967caf394b1d4b2c43e";
12+ sha256 = "1jvn1qx7csgycxpx1k804sm9gk5a0c65z9gh8ybp9awq3pziv0nx";
13+ };
14+
15+ nativeBuildInputs = [ autoreconfHook pkgconfig ];
16+
17+ buildInputs = [ fftw hackrf libusb1 ];
18+
19+ postInstall = ''
20+ mv $out/bin/kal $out/bin/kal-hackrf
21+ '';
22+
23+ meta = with stdenv.lib; {
24+ description = "Calculate local oscillator frequency offset in hackrf devices";
25+ longDescription = ''
26+ Kalibrate, or kal, can scan for GSM base stations in a given frequency
27+ band and can use those GSM base stations to calculate the local
28+ oscillator frequency offset.
29+
30+ This package is for hackrf devices.
31+ '';
32+ homepage = https://github.com/scateu/kalibrate-hackrf;
33+ license = licenses.bsd2;
34+ platforms = platforms.linux;
35+ maintainers = [ maintainers.mog ];
36+ };
37+}
pkgs/top-level/all-packages.nix+2
@@ -2244,6 +2244,8 @@ in
22442244
22452245 kalibrate-rtl = callPackage ../tools/misc/kalibrate-rtl { };
22462246
2247+ kalibrate-hackrf = callPackage ../tools/misc/kalibrate-hackrf { };
2248+
22472249 kakoune = callPackage ../applications/editors/kakoune { };
22482250
22492251 kbdd = callPackage ../applications/window-managers/kbdd { };