lol

Merge pull request #222474 from vbgl/ocaml-secp256k1-internal-0.4

ocamlPackages.secp256k1-internal: 0.3 → 0.4; ocamlPackages.hidapi: 1.1.1 → 1.1.2

authored by

Ulrik Strid and committed by
GitHub
1594660e 817979dc

+22 -13
+7 -3
pkgs/development/ocaml-modules/bigstring/default.nix
··· 1 - { lib, fetchFromGitHub, buildDunePackage }: 1 + { lib, fetchFromGitHub, buildDunePackage, ocaml }: 2 2 3 3 buildDunePackage rec { 4 4 pname = "bigstring"; 5 5 version = "0.3"; 6 6 7 - useDune2 = true; 7 + duneVersion = "3"; 8 + minimalOCamlVersion = "4.03"; 8 9 9 - minimumOCamlVersion = "4.03"; 10 + # Ensure compatibility with OCaml ≥ 5.0 11 + preConfigure = lib.optional (lib.versionAtLeast ocaml.version "4.08") '' 12 + substituteInPlace src/dune --replace '(libraries bytes bigarray)' "" 13 + ''; 10 14 11 15 src = fetchFromGitHub { 12 16 owner = "c-cube";
+9 -7
pkgs/development/ocaml-modules/hidapi/default.nix
··· 1 - { pkgs, lib, fetchurl, buildDunePackage, pkg-config, dune-configurator 1 + { pkgs, lib, fetchFromGitHub, buildDunePackage, pkg-config, dune-configurator 2 2 , bigstring, 3 3 }: 4 4 5 5 buildDunePackage rec { 6 6 pname = "hidapi"; 7 - version = "1.1.1"; 7 + version = "1.1.2"; 8 8 9 - useDune2 = true; 9 + duneVersion = "3"; 10 10 11 - src = fetchurl { 12 - url = "https://github.com/vbmithr/ocaml-hidapi/releases/download/${version}/${pname}-${version}.tbz"; 13 - sha256 = "1j7rd7ajrzla76r3sxljx6fb18f4f4s3jd7vhv59l2ilxyxycai2"; 11 + src = fetchFromGitHub { 12 + owner = "vbmithr"; 13 + repo = "ocaml-hidapi"; 14 + rev = version; 15 + hash = "sha256-SNQ1/i5wJJgcslIUBe+z5QgHns/waHnILyMUJ46cUwg="; 14 16 }; 15 17 16 - minimumOCamlVersion = "4.03"; 18 + minimalOCamlVersion = "4.03"; 17 19 18 20 nativeBuildInputs = [ pkg-config ]; 19 21 buildInputs = [ pkgs.hidapi dune-configurator ];
+4 -3
pkgs/development/ocaml-modules/secp256k1-internal/default.nix
··· 11 11 12 12 buildDunePackage rec { 13 13 pname = "secp256k1-internal"; 14 - version = "0.3"; 14 + version = "0.4"; 15 15 src = fetchFromGitLab { 16 16 owner = "nomadic-labs"; 17 17 repo = "ocaml-secp256k1-internal"; 18 - rev = version; 19 - sha256 = "sha256-1wvQ4RW7avcGsIc0qgDzhGrwOBY0KHrtNVHCj2cgNzo="; 18 + rev = "v${version}"; 19 + hash = "sha256-amVtp94cE1NxClWJgcJvRmilnQlC7z44mORUaxvPn00="; 20 20 }; 21 21 22 22 minimalOCamlVersion = "4.08"; 23 + duneVersion = "3"; 23 24 24 25 propagatedBuildInputs = [ 25 26 gmp
+2
pkgs/development/ocaml-modules/uecc/default.nix
··· 4 4 pname = "uecc"; 5 5 version = "0.4"; 6 6 7 + duneVersion = "3"; 8 + 7 9 src = fetchFromGitLab { 8 10 owner = "nomadic-labs"; 9 11 repo = "ocaml-uecc";