3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/radio/hackrf/default.nix
Jörg Thalheim 887295fd2d
treewide: remove the-kenny from maintainers
@the-kenny did a good job in the past and is set as maintainer in many package,
however since 2017-2018 he stopped contributing. To create less confusion
in pull requests when people try to request his feedback, I removed him as
maintainer from all packages.
2020-05-09 10:28:57 +01:00

38 lines
803 B
Nix

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