diff options
author | Alexandre Esteves <2335822+alexfmpe@users.noreply.github.com> | 2020-08-23 10:36:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-23 11:36:35 +0200 |
commit | 1ce4502e3b3f4ef69133f287b36d330d7e933173 (patch) | |
tree | 8e2b7f5d64211d2b2d94943786a3408e7311a1de /pkgs/development/ocaml-modules/hidapi | |
parent | 15d98507ee48dd016b2740462edb7ecf49c5c846 (diff) | |
download | nixpkgs-1ce4502e3b3f4ef69133f287b36d330d7e933173.tar nixpkgs-1ce4502e3b3f4ef69133f287b36d330d7e933173.tar.gz nixpkgs-1ce4502e3b3f4ef69133f287b36d330d7e933173.tar.bz2 nixpkgs-1ce4502e3b3f4ef69133f287b36d330d7e933173.tar.lz nixpkgs-1ce4502e3b3f4ef69133f287b36d330d7e933173.tar.xz nixpkgs-1ce4502e3b3f4ef69133f287b36d330d7e933173.tar.zst nixpkgs-1ce4502e3b3f4ef69133f287b36d330d7e933173.zip |
ocamlPackages.hidapi: init at 1.1.1 (#96049)
Diffstat (limited to 'pkgs/development/ocaml-modules/hidapi')
-rw-r--r-- | pkgs/development/ocaml-modules/hidapi/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/hidapi/default.nix b/pkgs/development/ocaml-modules/hidapi/default.nix new file mode 100644 index 00000000000..cd95b34fa2b --- /dev/null +++ b/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 ]; + }; +} |