1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/misc/hackrf/default.nix

31 lines
774 B
Nix
Raw Normal View History

2017-07-26 18:01:42 +01:00
{ stdenv, fetchgit, cmake, pkgconfig, libusb, fftwSinglePrec }:
2015-05-08 16:31:26 +01:00
stdenv.mkDerivation rec {
name = "hackrf-${version}";
2017-07-26 18:01:42 +01:00
version = "2017.02.1";
2015-05-08 16:31:26 +01:00
src = fetchgit {
url = "git://github.com/mossmann/hackrf";
rev = "refs/tags/v${version}";
2017-07-26 18:01:42 +01:00
sha256 = "16hd61icvzaciv7s9jpgm9c8q6m4mwvj97gxrb20sc65p5gjb7hv";
2015-05-08 16:31:26 +01:00
};
buildInputs = [
2017-07-26 18:01:42 +01:00
cmake pkgconfig libusb fftwSinglePrec
2015-05-08 16:31:26 +01:00
];
2017-07-26 18:01:42 +01:00
cmakeFlags = [ "-DUDEV_RULES_GROUP=plugdev" "-DUDEV_RULES_PATH=lib/udev/rules.d" ];
2015-05-08 16:31:26 +01:00
preConfigure = ''
2017-07-26 18:01:42 +01:00
cd host
2015-05-08 16:31:26 +01:00
'';
2017-07-26 18:01:42 +01:00
2015-05-08 16:31:26 +01: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 12:00:39 +01:00
maintainers = with maintainers; [ sjmackenzie the-kenny ];
2015-05-08 16:31:26 +01:00
};
}