From 9e37176f06195a9d2480b95496ce7262dbb44efb Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 22 Mar 2023 06:12:00 +0100 Subject: [PATCH] =?UTF-8?q?ocamlPackages.hidapi:=201.1.1=20=E2=86=92=201.1?= =?UTF-8?q?.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../development/ocaml-modules/hidapi/default.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pkgs/development/ocaml-modules/hidapi/default.nix b/pkgs/development/ocaml-modules/hidapi/default.nix index 68fc506222d..b47c153a497 100644 --- a/pkgs/development/ocaml-modules/hidapi/default.nix +++ b/pkgs/development/ocaml-modules/hidapi/default.nix @@ -1,19 +1,21 @@ -{ pkgs, lib, fetchurl, buildDunePackage, pkg-config, dune-configurator +{ pkgs, lib, fetchFromGitHub, buildDunePackage, pkg-config, dune-configurator , bigstring, }: buildDunePackage rec { pname = "hidapi"; - version = "1.1.1"; + version = "1.1.2"; - useDune2 = true; + duneVersion = "3"; - src = fetchurl { - url = "https://github.com/vbmithr/ocaml-hidapi/releases/download/${version}/${pname}-${version}.tbz"; - sha256 = "1j7rd7ajrzla76r3sxljx6fb18f4f4s3jd7vhv59l2ilxyxycai2"; + src = fetchFromGitHub { + owner = "vbmithr"; + repo = "ocaml-hidapi"; + rev = version; + hash = "sha256-SNQ1/i5wJJgcslIUBe+z5QgHns/waHnILyMUJ46cUwg="; }; - minimumOCamlVersion = "4.03"; + minimalOCamlVersion = "4.03"; nativeBuildInputs = [ pkg-config ]; buildInputs = [ pkgs.hidapi dune-configurator ];