Files
nixpkgs/pkgs/development/ocaml-modules/hidapi/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

43 lines
811 B
Nix

{
pkgs,
lib,
fetchFromGitHub,
buildDunePackage,
pkg-config,
dune-configurator,
bigstring,
}:
buildDunePackage rec {
pname = "hidapi";
version = "1.2.1";
duneVersion = "3";
src = fetchFromGitHub {
owner = "vbmithr";
repo = "ocaml-hidapi";
rev = version;
hash = "sha256-upygm5G46C65lxaiI6kBOzLrWxzW9qWb6efN/t58SRg=";
};
minimalOCamlVersion = "4.03";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
pkgs.hidapi
dune-configurator
];
propagatedBuildInputs = [ bigstring ];
doCheck = true;
meta = {
description = "Bindings to Signal11's hidapi library";
homepage = "https://github.com/vbmithr/ocaml-hidapi";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.alexfmpe ];
mainProgram = "ocaml-hid-enumerate";
};
}