2015-05-08 16:31:26 +01:00
|
|
|
{ stdenv, fetchgit, cmake, pkgconfig, libusb }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "hackrf-${version}";
|
2015-07-27 12:00:39 +01:00
|
|
|
version = "2015.07.2";
|
2015-05-08 16:31:26 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/mossmann/hackrf";
|
|
|
|
rev = "refs/tags/v${version}";
|
2015-07-27 12:00:39 +01:00
|
|
|
sha256 = "0wa4m0kdq8q2ib724w8ry8shmmm1liaaawhjygrjx6zxz9jxr3vm";
|
2015-05-08 16:31:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
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
|
|
|
};
|
|
|
|
}
|