python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / ocaml-modules / hidapi / default.nix
blobb4492f438cccaeac64c4d149447611d893096fe9
1 { pkgs, lib, fetchurl, buildDunePackage, pkg-config, dune-configurator
2 , bigstring,
3 }:
5 buildDunePackage rec {
6   pname = "hidapi";
7   version = "1.1.1";
9   useDune2 = true;
11   src = fetchurl {
12     url = "https://github.com/vbmithr/ocaml-hidapi/releases/download/${version}/${pname}-${version}.tbz";
13     sha256 = "1j7rd7ajrzla76r3sxljx6fb18f4f4s3jd7vhv59l2ilxyxycai2";
14   };
16   strictDeps = true;
18   minimumOCamlVersion = "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   };