Merge pull request #155014 from vbgl/ocaml-progress-0.2.1

ocamlPackages.progress: 0.1.1 → 0.2.1
This commit is contained in:
sterni 2022-01-15 00:13:53 +01:00 committed by GitHub
commit b65da09204
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 67 additions and 13 deletions

View file

@ -6,14 +6,14 @@
buildDunePackage rec {
pname = "index";
version = "1.4.0";
version = "1.4.1";
src = fetchurl {
url = "https://github.com/mirage/index/releases/download/${version}/index-${version}.tbz";
sha256 = "13xd858c50fs651p1y8x70323ff0gzbf6zgc0a25f6xh3rsmkn4c";
sha256 = "sha256:01i24m1xh7vn44sq7gsxg1z0jxa6rg80bpjcp3cvg6zfjpsl7sfx";
};
minimumOCamlVersion = "4.08";
minimalOCamlVersion = "4.08";
useDune2 = true;
buildInputs = [

View file

@ -1,23 +1,20 @@
{ lib, buildDunePackage, fetchurl
, mtime, terminal_size, alcotest, astring, fmt
{ lib, buildDunePackage
, fmt, logs, mtime, optint, terminal, vector
, alcotest, astring
}:
buildDunePackage rec {
pname = "progress";
version = "0.1.1";
minimumOCamlVersion = "4.08";
minimalOCamlVersion = "4.08";
useDune2 = true;
src = fetchurl {
url = "https://github.com/CraigFe/progress/releases/download/${version}/progress-${version}.tbz";
sha256 = "90c6bec19d014a4c6b0b67006f08bdfcf36981d2176769bebe0ccd75d6785a32";
};
inherit (terminal) version src;
propagatedBuildInputs = [ mtime terminal_size ];
propagatedBuildInputs = [ fmt logs mtime optint terminal vector ];
doCheck = true;
checkInputs = [ alcotest astring fmt ];
checkInputs = [ alcotest astring ];
meta = with lib; {
description = "Progress bar library for OCaml";

View file

@ -0,0 +1,30 @@
{ lib, buildDunePackage, fetchurl, ocaml
, stdlib-shims, uutf, uucp
, alcotest, fmt
}:
buildDunePackage rec {
pname = "terminal";
version = "0.2.1";
minimalOCamlVersion = "4.03";
useDune2 = true;
src = fetchurl {
url = "https://github.com/CraigFe/progress/releases/download/${version}/terminal-${version}.tbz";
sha256 = "sha256:0vjqkvmpyi8kvmb4vrx3f0994rph8i9pvlrz1dyi126vlb2zbrvs";
};
propagatedBuildInputs = [ stdlib-shims uutf uucp ];
doCheck = lib.versionAtLeast ocaml.version "4.05";
checkInputs = [ alcotest fmt ];
meta = with lib; {
description = "Basic utilities for interacting with terminals";
homepage = "https://github.com/CraigFe/progress";
license = licenses.mit;
maintainers = [ maintainers.vbgl ];
};
}

View file

@ -0,0 +1,23 @@
{ lib, buildDunePackage, fetchurl }:
buildDunePackage rec {
pname = "vector";
version = "1.0.0";
useDune2 = true;
src = fetchurl {
url = "https://github.com/backtracking/vector/releases/download/${version}/vector-${version}.tbz";
sha256 = "sha256:0hb6prpada4c5z07sxf5ayj5xbahsnwall15vaqdwdyfjgbd24pj";
};
doCheck = true;
meta = {
description = "Resizable arrays for OCaml";
license = lib.licenses.lgpl2Only;
homepage = "https://github.com/backtracking/vector";
maintainers = [ lib.maintainers.vbgl ];
};
}

View file

@ -1281,6 +1281,8 @@ let
tcslib = callPackage ../development/ocaml-modules/tcslib { };
terminal = callPackage ../development/ocaml-modules/terminal { };
terminal_size = callPackage ../development/ocaml-modules/terminal_size { };
tezos-010-PtGRANAD-test-helpers = callPackage ../development/ocaml-modules/tezos/010-PtGRANAD-test-helpers.nix { };
@ -1372,6 +1374,8 @@ let
vchan = callPackage ../development/ocaml-modules/vchan { };
vector = callPackage ../development/ocaml-modules/vector { };
vg = callPackage ../development/ocaml-modules/vg { };
vlq = callPackage ../development/ocaml-modules/vlq { };