nerdfonts: fix wrong attribute name in error message (#364463)
[NixPkgs.git] / pkgs / development / ocaml-modules / hidapi / default.nix
blobd65243e2cb71adef6367ce58f8e7444ee3d3a75d
2   pkgs,
3   lib,
4   fetchFromGitHub,
5   buildDunePackage,
6   pkg-config,
7   dune-configurator,
8   bigstring,
9 }:
11 buildDunePackage rec {
12   pname = "hidapi";
13   version = "1.2.1";
15   duneVersion = "3";
17   src = fetchFromGitHub {
18     owner = "vbmithr";
19     repo = "ocaml-hidapi";
20     rev = version;
21     hash = "sha256-upygm5G46C65lxaiI6kBOzLrWxzW9qWb6efN/t58SRg=";
22   };
24   minimalOCamlVersion = "4.03";
26   nativeBuildInputs = [ pkg-config ];
27   buildInputs = [
28     pkgs.hidapi
29     dune-configurator
30   ];
31   propagatedBuildInputs = [ bigstring ];
33   doCheck = true;
35   meta = with lib; {
36     description = "Bindings to Signal11's hidapi library";
37     homepage = "https://github.com/vbmithr/ocaml-hidapi";
38     license = licenses.isc;
39     maintainers = [ maintainers.alexfmpe ];
40     mainProgram = "ocaml-hid-enumerate";
41   };