summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/hidapi/default.nix
blob: 2caa25654e3917273a505ebdbdbb79a31b02fb48 (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
29
{ pkgs, lib, fetchurl, buildDunePackage, pkg-config, dune-configurator
, bigstring,
}:

buildDunePackage rec {
  pname = "hidapi";
  version = "1.1.1";

  useDune2 = true;

  src = fetchurl {
    url = "https://github.com/vbmithr/ocaml-hidapi/releases/download/${version}/${pname}-${version}.tbz";
    sha256 = "1j7rd7ajrzla76r3sxljx6fb18f4f4s3jd7vhv59l2ilxyxycai2";
  };

  minimumOCamlVersion = "4.03";

  buildInputs = [ pkgs.hidapi pkg-config dune-configurator ];
  propagatedBuildInputs = [ bigstring ];

  doCheck = true;

  meta = with lib; {
    homepage = "https://github.com/vbmithr/ocaml-hidapi";
    description = "Bindings to Signal11's hidapi library";
    license = licenses.isc;
    maintainers = [ maintainers.alexfmpe ];
  };
}