-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdefault.nix
45 lines (38 loc) · 1.3 KB
/
default.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
33
34
35
36
37
38
39
40
41
42
43
44
45
args@{
rev ? "9222ae36b208d1c6b55d88e10aa68f969b5b5244"
, sha256 ? "0dvl990alr4bb64w9b32dhzacvchpsspj8p3zqcgk7q5akvqh1mw"
, pkgs ? import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz";
inherit sha256; }) {
config.allowUnfree = true;
config.allowBroken = false;
}
}:
let lattice = coqPackages:
with pkgs.${coqPackages}; pkgs.stdenv.mkDerivation rec {
name = "coq${coq.coq-version}-lattice-${version}";
version = "1.0";
src = if pkgs ? coqFilterSource
then pkgs.coqFilterSource [] ./.
else ./.;
buildInputs = [
coq coq.ocaml coq.camlp5 coq.findlib equations # coqhammer pkgs.z3-tptp
];
enableParallelBuilding = true;
buildFlags = [
"JOBS=$(NIX_BUILD_CORES)"
];
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
env = pkgs.buildEnv { inherit name; paths = buildInputs; };
passthru = {
compatibleCoqVersions = v: builtins.elem v [ "8.10" "8.11" "8.12" "8.13" "8.14" "8.15" ];
};
};
in {
lattice_8_10 = lattice "coqPackages_8_10";
lattice_8_11 = lattice "coqPackages_8_11";
lattice_8_12 = lattice "coqPackages_8_12";
lattice_8_13 = lattice "coqPackages_8_13";
lattice_8_14 = lattice "coqPackages_8_14";
lattice_8_15 = lattice "coqPackages_8_15";
}