Merge pull request #155014 from vbgl/ocaml-progress-0.2.1
ocamlPackages.progress: 0.1.1 → 0.2.1
This commit is contained in:
commit
b65da09204
|
@ -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 = [
|
||||
|
|
|
@ -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";
|
||||
|
|
30
pkgs/development/ocaml-modules/terminal/default.nix
Normal file
30
pkgs/development/ocaml-modules/terminal/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
|
23
pkgs/development/ocaml-modules/vector/default.nix
Normal file
23
pkgs/development/ocaml-modules/vector/default.nix
Normal 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 ];
|
||||
};
|
||||
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue