summaryrefslogtreecommitdiffstats
path: root/pkgs/simple/hidapitester.nix
blob: d30a11adc80613443b1b170db22b598da61dd3ed (plain)
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
{ pkgs }:

pkgs.stdenv.mkDerivation rec {
  pname = "hidapitester";
  version = "0.5";

  src = pkgs.fetchFromGitHub {
    owner = "todbot";
    repo = "hidapitester";
    rev = "tags/${version}";
    hash = "sha256-QVc1P+FW4B9GZIzAg/BOKGnP7aotNUYdpzrc3/dPs58=";
  };

  installPhase = ''
    mkdir -p $out/bin
    cp hidapitester $out/bin/
  '';

  nativeBuildInputs = [
    pkgs.pkg-config
  ];

  buildInputs = [
    pkgs.hidapi
    pkgs.udev
  ];
}