depot/third_party/nixpkgs/pkgs/applications/radio/hackrf/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

37 lines
804 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libusb1, fftwSinglePrec }:
stdenv.mkDerivation rec {
pname = "hackrf";
version = "2018.01.1";
src = fetchFromGitHub {
owner = "mossmann";
repo = "hackrf";
rev = "v${version}";
sha256 = "0idh983xh6gndk9kdgx5nzz76x3mxb42b02c5xvdqahadsfx3b9w";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
libusb1
fftwSinglePrec
];
cmakeFlags = [ "-DUDEV_RULES_GROUP=plugdev" "-DUDEV_RULES_PATH=lib/udev/rules.d" ];
preConfigure = ''
cd host
'';
meta = with lib; {
description = "An open source SDR platform";
homepage = "https://greatscottgadgets.com/hackrf/";
license = licenses.gpl2;
platforms = platforms.all;
maintainers = with maintainers; [ sjmackenzie ];
};
}