@@ -0,0 +1,27 @@
1+{ pkgs, lib, fetchurl, buildDunePackage, pkg-config
2+, bigstring,
3+}:
4+
5+buildDunePackage rec {
6+ pname = "hidapi";
7+ version = "1.1.1";
8+
9+ src = fetchurl {
10+ url = "https://github.com/vbmithr/ocaml-hidapi/releases/download/${version}/${pname}-${version}.tbz";
11+ sha256 = "1j7rd7ajrzla76r3sxljx6fb18f4f4s3jd7vhv59l2ilxyxycai2";
12+ };
13+
14+ minimumOCamlVersion = "4.03";
15+
16+ buildInputs = [ pkgs.hidapi pkg-config ];
17+ propagatedBuildInputs = [ bigstring ];
18+
19+ doCheck = true;
20+
21+ meta = with lib; {
22+ homepage = https://github.com/vbmithr/ocaml-hidapi;
23+ description = "Bindings to Signal11's hidapi library";
24+ license = licenses.isc;
25+ maintainers = [ maintainers.alexfmpe ];
26+ };
27+}