nixpkgs-suyu/pkgs/applications/misc/hackrf/default.nix

29 lines
662 B
Nix
Raw Normal View History

2015-05-08 17:31:26 +02:00
{ stdenv, fetchgit, cmake, pkgconfig, libusb }:
stdenv.mkDerivation rec {
name = "hackrf-${version}";
2015-07-27 13:00:39 +02:00
version = "2015.07.2";
2015-05-08 17:31:26 +02:00
src = fetchgit {
url = "git://github.com/mossmann/hackrf";
rev = "refs/tags/v${version}";
sha256 = "1mn11yz6hbkmvrbxj5vnp78m5dsny96821a9ffpvbdcwx3s2p23m";
2015-05-08 17:31:26 +02: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 23:47:24 +01:00
platforms = platforms.all;
2015-07-27 13:00:39 +02:00
maintainers = with maintainers; [ sjmackenzie the-kenny ];
2015-05-08 17:31:26 +02:00
};
}