lol

ocamlPackages.git: 3.3.0 -> 3.3.2; decompress: 1.2.0 -> 1.3.0; duff: 0.3 -> 0.4; and related updates (#116486)

* ocamlPackages.hxd: 0.2.0 -> 0.3.1

ocamlPackages.hxd: disable lwt by default on OCaml 4.06 (syntax error)

* ocamlPackages.duff: 0.3 -> 0.4

* ocamlPackages.decompress: 1.2.0 -> 1.3.0

Keep decompress 1.2.0 around as decompress-1-2 until imagelib supports
decompress 1.3.0: https://github.com/rlepigre/ocaml-imagelib/issues/49

* ocamlPackages.carton*: 0.2.0 -> 0.4.0

* ocamlPackages.git: 3.3.0 -> 3.3.2

authored by

sterni and committed by
GitHub
f0b078ef 5fa9e280

+61 -34
+4 -3
pkgs/development/ocaml-modules/carton/default.nix
··· 2 2 , ke, duff, decompress, cstruct, optint, bigstringaf, stdlib-shims 3 3 , bigarray-compat, checkseum, logs, psq, fmt 4 4 , result, rresult, fpath, base64, bos, digestif, mmap, alcotest 5 - , crowbar, alcotest-lwt, lwt, findlib, mirage-flow, cmdliner 5 + , crowbar, alcotest-lwt, lwt, findlib, mirage-flow, cmdliner, hxd 6 6 }: 7 7 8 8 buildDunePackage rec { 9 9 pname = "carton"; 10 - version = "0.2.0"; 10 + version = "0.4.0"; 11 11 12 12 useDune2 = true; 13 13 minimumOCamlVersion = "4.08"; 14 14 15 15 src = fetchurl { 16 16 url = "https://github.com/mirage/ocaml-git/releases/download/${pname}-v${version}/${pname}-${pname}-v${version}.tbz"; 17 - sha256 = "0gfns4a9p9540kijccsg52yzyn3jfvi737mb0g71yazyc89dqwhn"; 17 + sha256 = "777f9692b83cd63570c17527a32c5045818ab9242d923cbbde72fc23d0da0140"; 18 18 }; 19 19 20 20 # remove changelogs for mimic and the git* packages ··· 30 30 rresult 31 31 fpath 32 32 bos 33 + hxd 33 34 ]; 34 35 propagatedBuildInputs = [ 35 36 ke
+28
pkgs/development/ocaml-modules/decompress/1.2.nix
··· 1 + { lib, fetchurl, buildDunePackage 2 + , checkseum, bigarray-compat, optint 3 + }: 4 + 5 + buildDunePackage rec { 6 + version = "1.2.0"; 7 + pname = "decompress"; 8 + 9 + minimumOCamlVersion = "4.07"; 10 + 11 + useDune2 = true; 12 + 13 + src = fetchurl { 14 + url = "https://github.com/mirage/decompress/releases/download/v${version}/decompress-v${version}.tbz"; 15 + sha256 = "1c3sq9a6kpzl0pj3gmg7w18ssjjl70yv0r3l7qjprcncjx23v62i"; 16 + }; 17 + 18 + propagatedBuildInputs = [ optint bigarray-compat checkseum ]; 19 + # required hxd version is not available in nixpkgs 20 + doCheck = false; 21 + 22 + meta = { 23 + description = "Pure OCaml implementation of Zlib"; 24 + license = lib.licenses.mit; 25 + maintainers = [ lib.maintainers.vbgl ]; 26 + homepage = "https://github.com/mirage/decompress"; 27 + }; 28 + }
+6 -5
pkgs/development/ocaml-modules/decompress/default.nix
··· 1 1 { lib, fetchurl, buildDunePackage 2 - , checkseum, bigarray-compat, optint 3 - , bigstringaf, alcotest, hxd, camlzip, base64 2 + , checkseum, bigarray-compat, optint, cmdliner 3 + , bigstringaf, alcotest, camlzip, base64, ctypes, fmt 4 4 }: 5 5 6 6 buildDunePackage rec { 7 - version = "1.2.0"; 7 + version = "1.3.0"; 8 8 pname = "decompress"; 9 9 10 10 minimumOCamlVersion = "4.07"; ··· 13 13 14 14 src = fetchurl { 15 15 url = "https://github.com/mirage/decompress/releases/download/v${version}/decompress-v${version}.tbz"; 16 - sha256 = "1c3sq9a6kpzl0pj3gmg7w18ssjjl70yv0r3l7qjprcncjx23v62i"; 16 + sha256 = "de149896939be13fedec46a4581121d5ab74850a2241d08e6aa8ae4bb18c52c4"; 17 17 }; 18 18 19 + buildInputs = [ cmdliner ]; 19 20 propagatedBuildInputs = [ optint bigarray-compat checkseum ]; 20 - checkInputs = [ alcotest bigstringaf hxd camlzip base64 ]; 21 + checkInputs = [ alcotest bigstringaf ctypes fmt camlzip base64 ]; 21 22 doCheck = true; 22 23 23 24 meta = {
+3 -3
pkgs/development/ocaml-modules/duff/default.nix
··· 1 - { lib, fetchurl, buildDunePackage 1 + { lib, fetchurl, buildDunePackage, fetchpatch 2 2 , stdlib-shims, bigarray-compat, fmt 3 3 , alcotest, hxd, crowbar, bigstringaf 4 4 }: 5 5 6 6 buildDunePackage rec { 7 7 pname = "duff"; 8 - version = "0.3"; 8 + version = "0.4"; 9 9 10 10 useDune2 = true; 11 11 12 12 src = fetchurl { 13 13 url = "https://github.com/mirage/duff/releases/download/v${version}/duff-v${version}.tbz"; 14 - sha256 = "1lb67yxk93ifj94p1i3swjbnj5xy8j6xzs72bwvq6cffx5xykznm"; 14 + sha256 = "4795e8344a2c2562e0ef6c44ab742334b5cd807637354715889741b20a461da4"; 15 15 }; 16 16 17 17 propagatedBuildInputs = [ stdlib-shims bigarray-compat fmt ];
+2 -2
pkgs/development/ocaml-modules/git/default.nix
··· 8 8 9 9 buildDunePackage rec { 10 10 pname = "git"; 11 - version = "3.3.0"; 11 + version = "3.3.2"; 12 12 13 13 minimumOCamlVersion = "4.08"; 14 14 useDune2 = true; 15 15 16 16 src = fetchurl { 17 17 url = "https://github.com/mirage/ocaml-git/releases/download/${version}/git-${version}.tbz"; 18 - sha256 = "090b67e8f8a02fb52b4d0c7aa445b5ff7353fdb2da00fb37b908f089c6776cd0"; 18 + sha256 = "01xcjggsb13n6018lp6ic0f6pglfl39qcg126h1k3da19hvpzhrv"; 19 19 }; 20 20 21 21 buildInputs = [
+1 -9
pkgs/development/ocaml-modules/git/unix.nix
··· 1 - { buildDunePackage, fetchpatch, git 1 + { buildDunePackage, git 2 2 , mmap, rresult, result, bigstringaf 3 3 , fmt, bos, fpath, uri, digestif, logs, lwt, git-cohttp-unix 4 4 , mirage-clock, mirage-clock-unix, astring, awa, cmdliner ··· 14 14 inherit (git) version src minimumOCamlVersion; 15 15 16 16 useDune2 = true; 17 - 18 - patches = [ 19 - # https://github.com/mirage/ocaml-git/pull/472 20 - (fetchpatch { 21 - url = "https://github.com/sternenseemann/ocaml-git/commit/54998331eb9d5c61afe8901fabe0c74c2877f096.patch"; 22 - sha256 = "12kd45mlfaj4hxh33k9920a22mq1q2sdrin2j41w1angvg00d3my"; 23 - }) 24 - ]; 25 17 26 18 buildInputs = [ 27 19 awa awa-mirage cmdliner git-cohttp-unix
+12 -11
pkgs/development/ocaml-modules/hxd/default.nix
··· 1 1 { lib, buildDunePackage, fetchurl 2 - , dune-configurator, cmdliner, angstrom 3 - , rresult, stdlib-shims, fmt, fpath 2 + , ocaml, dune-configurator, cmdliner 3 + , lwt, withLwt ? lib.versionAtLeast ocaml.version "4.07" 4 4 }: 5 5 6 6 buildDunePackage rec { 7 7 pname = "hxd"; 8 - version = "0.2.0"; 8 + version = "0.3.1"; 9 9 10 10 useDune2 = true; 11 11 ··· 13 13 14 14 src = fetchurl { 15 15 url = "https://github.com/dinosaure/hxd/releases/download/v${version}/hxd-v${version}.tbz"; 16 - sha256 = "1lyfrq058cc9x0c0hzsf3hv3ys0h8mxkwin9lldidlnj10izqf1l"; 16 + sha256 = "1c226c91e17cd329dec0c287bfd20f36302aa533069ff9c6ced32721f96b29bc"; 17 17 }; 18 18 19 + # ignore yes stderr output due to trapped SIGPIPE 20 + postPatch = '' 21 + sed -i 's|yes ".\+"|& 2> /dev/null|' test/*.t 22 + ''; 23 + 19 24 nativeBuildInputs = [ 20 25 dune-configurator 21 26 ]; 27 + 28 + propagatedBuildInputs = lib.optional withLwt lwt; 22 29 23 30 buildInputs = [ 24 31 cmdliner 25 - angstrom 26 - rresult 27 - fmt 28 - fpath 29 32 ]; 30 33 31 - propagatedBuildInputs = [ 32 - stdlib-shims 33 - ]; 34 + doCheck = true; 34 35 35 36 meta = with lib; { 36 37 description = "Hexdump in OCaml";
+5 -1
pkgs/top-level/ocaml-packages.nix
··· 238 238 239 239 decompress = callPackage ../development/ocaml-modules/decompress { }; 240 240 241 + decompress-1-2 = callPackage ../development/ocaml-modules/decompress/1.2.nix { }; 242 + 241 243 diet = callPackage ../development/ocaml-modules/diet { }; 242 244 243 245 digestif = callPackage ../development/ocaml-modules/digestif { }; ··· 399 401 400 402 hxd = callPackage ../development/ocaml-modules/hxd { }; 401 403 402 - imagelib = callPackage ../development/ocaml-modules/imagelib { }; 404 + imagelib = callPackage ../development/ocaml-modules/imagelib { 405 + decompress = decompress-1-2; 406 + }; 403 407 404 408 inotify = callPackage ../development/ocaml-modules/inotify { }; 405 409