2021-03-31 20:47:50 +02:00
|
|
|
{ pkgs, lib, fetchurl, buildDunePackage, pkg-config, dune-configurator
|
2020-08-23 11:36:35 +02:00
|
|
|
, bigstring,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "hidapi";
|
|
|
|
version = "1.1.1";
|
|
|
|
|
2021-03-31 20:47:50 +02:00
|
|
|
useDune2 = true;
|
|
|
|
|
2020-08-23 11:36:35 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/vbmithr/ocaml-hidapi/releases/download/${version}/${pname}-${version}.tbz";
|
|
|
|
sha256 = "1j7rd7ajrzla76r3sxljx6fb18f4f4s3jd7vhv59l2ilxyxycai2";
|
|
|
|
};
|
|
|
|
|
|
|
|
minimumOCamlVersion = "4.03";
|
|
|
|
|
2021-03-31 20:47:50 +02:00
|
|
|
buildInputs = [ pkgs.hidapi pkg-config dune-configurator ];
|
2020-08-23 11:36:35 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|