3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/hackrf/default.nix
2016-06-03 17:17:08 +03:00

29 lines
662 B
Nix

{ stdenv, fetchgit, cmake, pkgconfig, libusb }:
stdenv.mkDerivation rec {
name = "hackrf-${version}";
version = "2015.07.2";
src = fetchgit {
url = "git://github.com/mossmann/hackrf";
rev = "refs/tags/v${version}";
sha256 = "1mn11yz6hbkmvrbxj5vnp78m5dsny96821a9ffpvbdcwx3s2p23m";
};
buildInputs = [
cmake pkgconfig libusb
];
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 the-kenny ];
};
}