4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
37 lines
1.2 KiB
Nix
37 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, fftw, hackrf, libusb1 }:
|
|
|
|
stdenv.mkDerivation {
|
|
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 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 ];
|
|
};
|
|
}
|