forked from vellvm/vellvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
42 lines (38 loc) · 1.62 KB
/
flake.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
{
description = "Vellvm, a formal specification and interpreter for LLVM";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/master";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
lib = pkgs.lib;
coq = pkgs.coq_8_15;
ocamlPkgs = coq.ocamlPackages;
coqPkgs = pkgs.coqPackages_8_15.overrideScope'
(self: super:
{ simple-io = super.simple-io.overrideAttrs
(s : { version = "1.7.0";
src = fetchTarball {
url = "https://github.com/Lysxia/coq-simple-io/archive/refs/tags/1.7.0.zip";
sha256 = "1a1q9x2abx71hqvjdai3n12jxzd49mhf3nqqh3ya2ssl2lj609ci";
};
propagatedBuildInputs = s.propagatedBuildInputs ++ [ ocamlPkgs.cppo ocamlPkgs.zarith ocamlPkgs.findlib ];
meta.broken = false;
});
ITree = super.ITree.overrideAttrs
(s : { version = "5.0.0";
src = fetchTarball {
url = "https://github.com/DeepSpec/InteractionTrees/archive/refs/tags/5.0.0.zip";
sha256 = "1cnq5qb9n6908xw117z9d5c3is9m42aa0xabw7nna22szycc4apz";
};
});
});
version = "vellvm:master";
in {
defaultPackage =
(pkgs.callPackage ./release.nix (ocamlPkgs // coqPkgs // { inherit coq version; })).vellvm;
});
}