about summary refs log tree commit diff
path: root/pkgs/applications/misc/hackrf/default.nix
blob: e92cd4cdaccdb42522a3159c5d9b23550550df9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ 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 ];
  };
}