ocamlPackages.hidapi: init at 1.1.1 (#96049)

This commit is contained in:
Alexandre Esteves 2020-08-23 10:36:35 +01:00 committed by GitHub
parent 15d98507ee
commit 1ce4502e3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{ pkgs, lib, fetchurl, buildDunePackage, pkg-config
, bigstring,
}:
buildDunePackage rec {
pname = "hidapi";
version = "1.1.1";
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 ];
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 ];
};
}

View file

@ -312,6 +312,8 @@ let
herelib = callPackage ../development/ocaml-modules/herelib { };
hidapi = callPackage ../development/ocaml-modules/hidapi { };
higlo = callPackage ../development/ocaml-modules/higlo { };
hkdf = callPackage ../development/ocaml-modules/hkdf { };