summary refs log tree commit diff
path: root/pkgs/tools/misc/hid-listen/default.nix
blob: afc7c5741fd4873e498d517ea51b4b2f5ba97efa (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
{ stdenv, fetchzip }:
stdenv.mkDerivation rec {
  pname = "hid-listen";
  version = "1.01";

  src = fetchzip {
    name = "hid_listen_${version}";
    url = "https://www.pjrc.com/teensy/hid_listen_${version}.zip";
    sha256 = "0sd4dvi39fl4vy880mg531ryks5zglfz5mdyyqr7x6qv056ffx9w";
  };

  installPhase = ''
    mkdir -p $out/bin
    mv ./hid_listen $out/bin/hid_listen
  '';

  meta = with stdenv.lib; {
    description = "A tool thats prints debugging information from usb HID devices";
    homepage = "https://www.pjrc.com/teensy/hid_listen.html";
    license = licenses.gpl3;
    maintainers = with maintainers; [ tomsmeets ];
    platforms = platforms.linux;
  };
}