mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 18:44:13 +00:00
![aleksana](/assets/img/avatar_default.png)
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
40 lines
1.2 KiB
Nix
40 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";
|
|
};
|
|
}
|