forked from vellvm/vellvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.nix
65 lines (58 loc) · 1.45 KB
/
release.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{ lib,
mkCoqDerivation,
version ? null,
coq,
dune_3,
# All of these ocaml packages should probably come from the coq
# version, or there will be disagreements between compiler versions.
ocaml ? coq.ocaml,
ocamlbuild ? coq.ocamlPackagse.ocamlbuild,
findlib ? coq.ocamlPackagse.findlib,
menhir ? coq.ocamlPackages.menhir,
qcheck ? coq.ocamlPackages.qcheck,
cppo ? coq.ocamlPackages.cppo,
mathcomp, mathcomp-ssreflect, coq-ext-lib, paco, ITree, flocq, ceres, simple-io, zarith, ... }:
{ vellvm =
mkCoqDerivation {
namePrefix = [ "coq" ];
pname = "vellvm";
owner = "vellvm";
inherit version;
propagatedBuildInputs =
[ coq
dune_3
] ++
# Coq libraries
[ mathcomp
mathcomp-ssreflect
coq-ext-lib
paco
ITree
flocq
ceres
simple-io
zarith
] ++
# These ocaml packages have to come from coq.ocamlPackages to
# avoid disagreements between ocaml compiler versions.
[ ocaml
ocamlbuild
findlib
menhir
qcheck
cppo
];
src = ./.;
buildPhase = ''
make -C src/
'';
installPhase = ''
mkdir -p $out/bin
install src/vellvm $out/bin/vellvm
'';
meta = {
description = "Vellvm, a formal specification and interpreter for LLVM";
license = lib.licenses.gpl3Only;
};
};
}