catala/.nix/catala.nix

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

78 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
2022-01-10 18:25:32 +03:00
, pkgs
, fetchFromGitHub
, buildDunePackage
, ansiterminal
, sedlex_2
, menhir
, unionfind
, bindlib
2022-05-30 15:58:25 +03:00
, cmdliner_1_1_0
, re
, zarith
, zarith_stubs_js
, ocamlgraph
, calendar
, visitors
, benchmark
, js_of_ocaml
, js_of_ocaml-ppx
, camomile
, cppo
, ppx_deriving
2022-01-10 13:59:23 +03:00
, z3
2022-03-10 14:00:38 +03:00
, alcotest
2022-05-30 15:58:25 +03:00
, ppx_yojson_conv
, menhirLib ? null #for nixos-unstable compatibility.
}:
2021-10-29 15:45:05 +03:00
buildDunePackage rec {
pname = "catala";
2022-05-30 15:58:25 +03:00
version = "0.6.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 = ./.;
useDune2 = true;
propagatedBuildInputs = [
ansiterminal
sedlex_2
menhir
2021-11-28 20:33:00 +03:00
menhirLib
2022-05-30 15:58:25 +03:00
cmdliner_1_1_0
2021-10-29 15:45:05 +03:00
re
zarith
zarith_stubs_js
ocamlgraph
calendar
visitors
benchmark
js_of_ocaml
js_of_ocaml-ppx
2022-05-30 15:58:25 +03:00
ppx_yojson_conv
2021-10-29 15:45:05 +03:00
camomile
cppo
2022-01-10 13:59:23 +03:00
z3
2021-10-29 15:45:05 +03:00
2022-01-10 18:25:32 +03:00
pkgs.z3
2021-10-29 15:45:05 +03:00
ppx_deriving
2022-03-10 14:00:38 +03:00
alcotest
2021-10-29 15:45:05 +03:00
unionfind
bindlib
] ++ (if isNull menhirLib then [ ] else [ menhirLib ]);
2021-10-29 15:45:05 +03:00
doCheck = true;
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; [ ];
};
}