forked from jwiegley/category-theory
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
36 lines (28 loc) · 997 Bytes
/
default.nix
File metadata and controls
36 lines (28 loc) · 997 Bytes
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
args@{ coqPackages ? "coqPackages_8_14"
, rev ? "e6df26a654b7fdd59a068c57001eab5736b1363c"
, sha256 ? "1yxx9rmhgh5db65kr721s43288g21qcajlpr64czxpx6rr94rwgm"
, pkgs ? import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz";
inherit sha256; }) {
config.allowUnfree = true;
config.allowBroken = false;
}
}:
with pkgs.${coqPackages};
pkgs.stdenv.mkDerivation rec {
name = "coq${coq.coq-version}-category-theory-${version}";
version = "1.0";
src = if pkgs ? coqFilterSource
then pkgs.coqFilterSource [] ./.
else ./.;
buildInputs = [ coq coq.ocaml coq.camlp5 coq.findlib equations ];
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" ];
};
}