mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-15 00:24:47 +00:00
![Silvan Mosberger](/assets/img/avatar_default.png)
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
pkg-config,
|
|
fftw,
|
|
hackrf,
|
|
libusb1,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "kalibrate-hackrf";
|
|
version = "unstable-2016-08-27";
|
|
|
|
# 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
|
|
pkg-config
|
|
];
|
|
|
|
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 ];
|
|
mainProgram = "kal-hackrf";
|
|
};
|
|
}
|