evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / ocaml-modules / hidapi / default.nix
blob49f92b87e015e2897702e5d4113dcf307123f149
1 { pkgs, lib, fetchFromGitHub, buildDunePackage, pkg-config, dune-configurator
2 , bigstring,
3 }:
5 buildDunePackage rec {
6   pname = "hidapi";
7   version = "1.2.1";
9   duneVersion = "3";
11   src = fetchFromGitHub {
12     owner = "vbmithr";
13     repo = "ocaml-hidapi";
14     rev = version;
15     hash = "sha256-upygm5G46C65lxaiI6kBOzLrWxzW9qWb6efN/t58SRg=";
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   };