mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-19 00:15:39 +03:00
add ocolor as a dependency
This commit is contained in:
parent
f0f8c088ce
commit
2911003088
@ -25,6 +25,7 @@
|
|||||||
, zarith_stubs_js
|
, zarith_stubs_js
|
||||||
, ocaml-crunch
|
, ocaml-crunch
|
||||||
, cohttp-lwt-unix
|
, cohttp-lwt-unix
|
||||||
|
, ocolor
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildDunePackage {
|
buildDunePackage {
|
||||||
@ -62,6 +63,7 @@ buildDunePackage {
|
|||||||
zarith
|
zarith
|
||||||
zarith_stubs_js
|
zarith_stubs_js
|
||||||
cohttp-lwt-unix
|
cohttp-lwt-unix
|
||||||
|
ocolor
|
||||||
];
|
];
|
||||||
|
|
||||||
# Currently there is no unit tests in catala and Cram tests are handled by clerk
|
# Currently there is no unit tests in catala and Cram tests are handled by clerk
|
||||||
|
39
.nix/ocolor.nix
Normal file
39
.nix/ocolor.nix
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{ lib
|
||||||
|
, buildDunePackage
|
||||||
|
, odoc
|
||||||
|
, cppo
|
||||||
|
, ounit
|
||||||
|
, fetchurl
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildDunePackage rec {
|
||||||
|
pname = "ocolor";
|
||||||
|
version = "1.3.0";
|
||||||
|
|
||||||
|
minimumOCamlVersion = "4.11";
|
||||||
|
|
||||||
|
src = fetchurl
|
||||||
|
{
|
||||||
|
url = "https://github.com/marc-chevalier/${pname}/archive/${version}.tar.gz";
|
||||||
|
sha256 = "sha256-V7xuBRNbWWi3OpDRe7WakOO4Vz6nyoV8/gyn45fpmYA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
duneVersion = "3";
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
odoc
|
||||||
|
ounit
|
||||||
|
cppo
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cppo ];
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/marc-chevalier/ocolor";
|
||||||
|
description =
|
||||||
|
"OColor is an OCaml library which help to format nicely using ANSI escape codes.";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ ];
|
||||||
|
};
|
||||||
|
}
|
@ -11,4 +11,5 @@ ocamlPackages.overrideScope' (self: super: {
|
|||||||
ubase = self.callPackage ./ubase.nix { };
|
ubase = self.callPackage ./ubase.nix { };
|
||||||
dates_calc = self.callPackage ./dates_calc.nix { };
|
dates_calc = self.callPackage ./dates_calc.nix { };
|
||||||
french_law = self.callPackage ./french_law.nix { };
|
french_law = self.callPackage ./french_law.nix { };
|
||||||
|
ocolor = self.callPackage ./ocolor.nix { };
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user