catala/.nix/catala.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

75 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, alcotest
, ansiterminal
, benchmark
, bindlib
, buildDunePackage
, calendar
, cmdliner_1_1_0
, cppo
2022-09-05 16:05:52 +03:00
, dates_calc
, fetchFromGitHub
, js_of_ocaml
, js_of_ocaml-ppx
, menhir
, menhirLib ? null #for nixos-unstable compatibility.
, ocamlgraph
, pkgs
, ppx_deriving
2022-05-30 15:58:25 +03:00
, ppx_yojson_conv
, re
, sedlex
, ubase
, unionfind
, visitors
, z3
, zarith
, zarith_stubs_js
}:
2021-10-29 15:45:05 +03:00
buildDunePackage rec {
pname = "catala";
2022-08-08 18:26:07 +03:00
version = "0.7.0"; # TODO parse `catala.opam` with opam2json
2021-10-29 15:45:05 +03:00
2021-12-01 17:53:17 +03:00
minimumOCamlVersion = "4.11";
2021-10-29 15:45:05 +03:00
src = ../.;
2021-10-29 15:45:05 +03:00
2022-09-05 13:47:52 +03:00
duneVersion = "3";
2021-10-29 15:45:05 +03:00
propagatedBuildInputs = [
alcotest
2021-10-29 15:45:05 +03:00
ansiterminal
benchmark
bindlib
cmdliner_1_1_0
2021-10-29 15:45:05 +03:00
cppo
2022-09-05 16:05:52 +03:00
dates_calc
js_of_ocaml
js_of_ocaml-ppx
menhir
menhirLib
ocamlgraph
2022-01-10 18:25:32 +03:00
pkgs.z3
ppx_deriving
ppx_yojson_conv
re
sedlex
ubase
2021-10-29 15:45:05 +03:00
unionfind
visitors
z3
zarith
zarith_stubs_js
] ++ (if isNull menhirLib then [ ] else [ menhirLib ]);
doCheck = true;
2021-10-29 15:45:05 +03:00
meta = with lib; {
homepage = "https://catala-lang.org";
description =
"Catala is a domain-specific programming language designed for deriving correct-by-construction implementations from legislative texts.";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}