biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / ocaml-modules / hidapi / default.nix
blobb47c153a4974a0bcfe4e99f8de134a0b807d9b0d
1 { pkgs, lib, fetchFromGitHub, buildDunePackage, pkg-config, dune-configurator
2 , bigstring,
3 }:
5 buildDunePackage rec {
6   pname = "hidapi";
7   version = "1.1.2";
9   duneVersion = "3";
11   src = fetchFromGitHub {
12     owner = "vbmithr";
13     repo = "ocaml-hidapi";
14     rev = version;
15     hash = "sha256-SNQ1/i5wJJgcslIUBe+z5QgHns/waHnILyMUJ46cUwg=";
16   };
18   minimalOCamlVersion = "4.03";
20   nativeBuildInputs = [ pkg-config ];
21   buildInputs = [ pkgs.hidapi dune-configurator ];
22   propagatedBuildInputs = [ bigstring ];
24   doCheck = true;
26   meta = with lib; {
27     description = "Bindings to Signal11's hidapi library";
28     homepage = "https://github.com/vbmithr/ocaml-hidapi";
29     license = licenses.isc;
30     maintainers = [ maintainers.alexfmpe ];
31     mainProgram = "ocaml-hid-enumerate";
32   };