-
Notifications
You must be signed in to change notification settings - Fork 0
/
tealeaves.nix
32 lines (31 loc) · 911 Bytes
/
tealeaves.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, nix-gitignore, mkCoqDerivation, coq, ocaml, version ? null }:
mkCoqDerivation {
pname = "tealeaves";
owner = "dunnl";
inherit version;
src = nix-gitignore.gitignoreSource
[ "docs/"
"extra/*.sh"
"images/"
"LICENSE"
"*.lock"
"*.nix"
"*.md"
"Makefile.examples"
] ./.;
nativeBuildInputs = [
ocaml # `ocaml` is needed for `ocamldoc`, which is needed to make Makefile.coq happy
];
installTargets = "install install-doc";
buildFlags = [ "-j1" ];
extraInstallFlags = ["DOCDIR=$(out)/share/coq/${coq.coq-version}/"];
meta = {
description = "A Coq framework for reusable syntax metatheory.";
longDescription = ''
Tealeaves is a Coq framework for building reusable metatheory
for raw first-order abstract syntax.
'';
homepage = https://tealeaves.science;
license = lib.licenses.mit;
};
}