git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.hidapi: init at 1.1.1 (#96049)
commit1ce4502e3b3f4ef69133f287b36d330d7e933173 authorAlexandre Esteves <2335822+alexfmpe@users.noreply.github.com> dateSun 23 Aug 2020, 10:36 (6 years ago) parent15d9850
2 files changed+29
pkgs/development/ocaml-modules/hidapi/default.nix+27 pkgs/top-level/ocaml-packages.nix+2
pkgs/development/ocaml-modules/hidapi/default.nixnew file+27
@@ -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+}
pkgs/top-level/ocaml-packages.nix+2
@@ -312,6 +312,8 @@ let
312312
313313 herelib = callPackage ../development/ocaml-modules/herelib { };
314314
315+ hidapi = callPackage ../development/ocaml-modules/hidapi { };
316+
315317 higlo = callPackage ../development/ocaml-modules/higlo { };
316318
317319 hkdf = callPackage ../development/ocaml-modules/hkdf { };