aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/ocaml-modules/hidapi/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/hidapi/default.nix')
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/hidapi/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/hidapi/default.nix b/nixpkgs/pkgs/development/ocaml-modules/hidapi/default.nix
new file mode 100644
index 00000000000..cd95b34fa2b
--- /dev/null
+++ b/nixpkgs/pkgs/development/ocaml-modules/hidapi/default.nix
@@ -0,0 +1,27 @@
+{ pkgs, lib, fetchurl, buildDunePackage, pkg-config
+, bigstring,
+}:
+
+buildDunePackage rec {
+ pname = "hidapi";
+ version = "1.1.1";
+
+ src = fetchurl {
+ url = "https://github.com/vbmithr/ocaml-hidapi/releases/download/${version}/${pname}-${version}.tbz";
+ sha256 = "1j7rd7ajrzla76r3sxljx6fb18f4f4s3jd7vhv59l2ilxyxycai2";
+ };
+
+ minimumOCamlVersion = "4.03";
+
+ buildInputs = [ pkgs.hidapi pkg-config ];
+ propagatedBuildInputs = [ bigstring ];
+
+ doCheck = true;
+
+ meta = with lib; {
+ homepage = https://github.com/vbmithr/ocaml-hidapi;
+ description = "Bindings to Signal11's hidapi library";
+ license = licenses.isc;
+ maintainers = [ maintainers.alexfmpe ];
+ };
+}