Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 33 lines 790 B view raw
1{ pkgs, lib, fetchFromGitHub, buildDunePackage, pkg-config, dune-configurator 2, bigstring, 3}: 4 5buildDunePackage rec { 6 pname = "hidapi"; 7 version = "1.1.2"; 8 9 duneVersion = "3"; 10 11 src = fetchFromGitHub { 12 owner = "vbmithr"; 13 repo = "ocaml-hidapi"; 14 rev = version; 15 hash = "sha256-SNQ1/i5wJJgcslIUBe+z5QgHns/waHnILyMUJ46cUwg="; 16 }; 17 18 minimalOCamlVersion = "4.03"; 19 20 nativeBuildInputs = [ pkg-config ]; 21 buildInputs = [ pkgs.hidapi dune-configurator ]; 22 propagatedBuildInputs = [ bigstring ]; 23 24 doCheck = true; 25 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 }; 33}