feat(ocaml/catala): init
This commit is contained in:
parent
4304c2743b
commit
3118ead993
2 changed files with 85 additions and 0 deletions
82
ocaml-pkgs/catala.nix
Normal file
82
ocaml-pkgs/catala.nix
Normal file
|
@ -0,0 +1,82 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
fetchFromGitHub,
|
||||||
|
buildDunePackage,
|
||||||
|
|
||||||
|
menhirLib,
|
||||||
|
menhir,
|
||||||
|
re,
|
||||||
|
otoml,
|
||||||
|
ubase,
|
||||||
|
ocamlgraph,
|
||||||
|
uutf,
|
||||||
|
js_of_ocaml,
|
||||||
|
zarith_stubs_js,
|
||||||
|
bindlib,
|
||||||
|
alcotest,
|
||||||
|
dates_calc,
|
||||||
|
sedlex,
|
||||||
|
js_of_ocaml-ppx,
|
||||||
|
zarith,
|
||||||
|
ocolor,
|
||||||
|
unionFind,
|
||||||
|
visitors,
|
||||||
|
ninja_utils,
|
||||||
|
ocaml-crunch,
|
||||||
|
obelisk,
|
||||||
|
cppo,
|
||||||
|
groff,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildDunePackage rec {
|
||||||
|
pname = "catala";
|
||||||
|
version = "0.10.0";
|
||||||
|
|
||||||
|
minimalOCamlVersion = "4.14";
|
||||||
|
duneVersion = "3";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "CatalaLang";
|
||||||
|
repo = "catala";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-JMDJJ+KIIlWMcKhKGUGwPy5+XoiVd0b/uXKAIn85n/Q=";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
menhirLib
|
||||||
|
js_of_ocaml
|
||||||
|
re
|
||||||
|
otoml
|
||||||
|
ubase
|
||||||
|
ocamlgraph
|
||||||
|
uutf
|
||||||
|
zarith_stubs_js
|
||||||
|
bindlib
|
||||||
|
alcotest
|
||||||
|
dates_calc
|
||||||
|
sedlex
|
||||||
|
js_of_ocaml-ppx
|
||||||
|
zarith
|
||||||
|
ocolor
|
||||||
|
unionFind
|
||||||
|
visitors
|
||||||
|
ninja_utils
|
||||||
|
];
|
||||||
|
nativeBuildInputs = [
|
||||||
|
menhir
|
||||||
|
js_of_ocaml
|
||||||
|
ocaml-crunch
|
||||||
|
obelisk
|
||||||
|
cppo
|
||||||
|
groff
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Programming language for literate programming law specification";
|
||||||
|
homepage = "https://github.com/CatalaLang/catala";
|
||||||
|
license = lib.licenses.asl20;
|
||||||
|
maintainers = with lib.maintainers; [ ];
|
||||||
|
mainProgram = "catala";
|
||||||
|
platforms = lib.platforms.all;
|
||||||
|
};
|
||||||
|
}
|
|
@ -21,4 +21,7 @@ mkGeneralOverlay ./pkgs final prev
|
||||||
ocamlPackagesExtensions = (prev.ocamlPackagesExtensions or [ ]) ++ [
|
ocamlPackagesExtensions = (prev.ocamlPackagesExtensions or [ ]) ++ [
|
||||||
(mkGeneralOverlay ./ocaml-pkgs)
|
(mkGeneralOverlay ./ocaml-pkgs)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# tools from language specific pkgs sets
|
||||||
|
inherit (final.ocamlPackages) catala;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue