nixpkgs/pkgs/applications/radio/hackrf/default.nix

33 lines
804 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, pkgconfig, libusb, fftwSinglePrec }:
2015-05-08 15:31:26 +00:00
stdenv.mkDerivation rec {
name = "hackrf-${version}";
version = "2018.01.1";
2015-05-08 15:31:26 +00:00
src = fetchFromGitHub {
owner = "mossmann";
repo = "hackrf";
rev = "v${version}";
sha256 = "0idh983xh6gndk9kdgx5nzz76x3mxb42b02c5xvdqahadsfx3b9w";
2015-05-08 15:31:26 +00:00
};
nativeBuildInputs = [ pkgconfig ];
2015-05-08 15:31:26 +00:00
buildInputs = [
cmake libusb fftwSinglePrec
2015-05-08 15:31:26 +00:00
];
2017-07-26 17:01:42 +00:00
cmakeFlags = [ "-DUDEV_RULES_GROUP=plugdev" "-DUDEV_RULES_PATH=lib/udev/rules.d" ];
2015-05-08 15:31:26 +00:00
preConfigure = ''
2017-07-26 17:01:42 +00:00
cd host
2015-05-08 15:31:26 +00:00
'';
2017-07-26 17:01:42 +00:00
2015-05-08 15:31:26 +00:00
meta = with stdenv.lib; {
description = "An open source SDR platform";
homepage = http://greatscottgadgets.com/hackrf/;
license = licenses.gpl2;
2015-10-31 22:47:24 +00:00
platforms = platforms.all;
2015-07-27 11:00:39 +00:00
maintainers = with maintainers; [ sjmackenzie the-kenny ];
2015-05-08 15:31:26 +00:00
};
}