at v206 664 B view raw
1{ stdenv, fetchgit, cmake, pkgconfig, libusb }: 2 3stdenv.mkDerivation rec { 4 name = "hackrf-${version}"; 5 version = "2015.07.2"; 6 7 src = fetchgit { 8 url = "git://github.com/mossmann/hackrf"; 9 rev = "refs/tags/v${version}"; 10 sha256 = "0wa4m0kdq8q2ib724w8ry8shmmm1liaaawhjygrjx6zxz9jxr3vm"; 11 }; 12 13 buildInputs = [ 14 cmake pkgconfig libusb 15 ]; 16 17 preConfigure = '' 18 cd host 19 ''; 20 21 meta = with stdenv.lib; { 22 description = "An open source SDR platform"; 23 homepage = http://greatscottgadgets.com/hackrf/; 24 license = licenses.gpl2; 25 platforms = platforms.linux; 26 maintainers = with maintainers; [ sjmackenzie the-kenny ]; 27 }; 28}