2021-11-29 13:24:03 +03:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildDunePackage
|
|
|
|
, ansiterminal
|
|
|
|
, sedlex_2
|
|
|
|
, menhir
|
|
|
|
, unionfind
|
|
|
|
, bindlib
|
|
|
|
, cmdliner
|
|
|
|
, re
|
|
|
|
, zarith
|
|
|
|
, zarith_stubs_js
|
|
|
|
, ocamlgraph
|
|
|
|
, calendar
|
|
|
|
, visitors
|
|
|
|
, benchmark
|
|
|
|
, js_of_ocaml
|
|
|
|
, js_of_ocaml-ppx
|
|
|
|
, camomile
|
|
|
|
, cppo
|
2022-01-10 13:59:23 +03:00
|
|
|
, z3
|
2021-11-29 13:24:03 +03:00
|
|
|
, menhirLib ? null #for nixos-unstable compatibility.
|
|
|
|
}:
|
2021-10-29 15:45:05 +03:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "catala";
|
|
|
|
version = "0.3.0";
|
|
|
|
|
|
|
|
minimumOCamlVersion = "4.08";
|
|
|
|
|
|
|
|
src = ./.;
|
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ansiterminal
|
|
|
|
sedlex_2
|
|
|
|
menhir
|
2021-11-28 20:33:00 +03:00
|
|
|
menhirLib
|
2021-10-29 15:45:05 +03:00
|
|
|
cmdliner
|
|
|
|
re
|
|
|
|
zarith
|
|
|
|
zarith_stubs_js
|
|
|
|
ocamlgraph
|
|
|
|
calendar
|
|
|
|
visitors
|
|
|
|
benchmark
|
|
|
|
js_of_ocaml
|
|
|
|
js_of_ocaml-ppx
|
|
|
|
camomile
|
|
|
|
cppo
|
2022-01-10 13:59:23 +03:00
|
|
|
z3
|
2021-10-29 15:45:05 +03:00
|
|
|
|
|
|
|
unionfind
|
|
|
|
bindlib
|
2021-11-29 13:24:03 +03:00
|
|
|
] ++ (if isNull menhirLib then [ ] else [ menhirLib ]);
|
2021-10-29 15:45:05 +03:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
patches = [ ./.nix/no-web.patch ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://catala-lang.org";
|
2021-10-29 15:59:16 +03:00
|
|
|
description =
|
|
|
|
"Catala is a domain-specific programming language designed for deriving correct-by-construction implementations from legislative texts.";
|
2021-10-29 15:45:05 +03:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
2021-11-29 13:24:03 +03:00
|
|
|
}
|