Skip to content

Commit

Permalink
pin alt-ergo, z3
Browse files Browse the repository at this point in the history
  • Loading branch information
fdupress committed Aug 7, 2023
1 parent a0865f5 commit c7e7234
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,30 @@

with import <nixpkgs> {};

let why3_local =
let alt-ergo-pin =
alt-ergo.overrideAttrs (o : rec {
version = "2.4.2";
src = fetchFromGitHub {
owner = "OCamlPro";
repo = "alt-ergo";
rev = version;
hash = "sha256-8pJ/1UAbheQaLFs5Uubmmf5D0oFJiPxF6e2WTZgRyAc=";
};
});
in

let cvc4-pin = cvc4; in

let z3-pin = z3_4_12; in

let provers =
if withProvers then [
alt-ergo-pin
cvc4-pin
z3-pin
] else []; in

let why3-pin =
why3.overrideAttrs (o : rec {
version = "1.6.0";
src = fetchurl {
Expand All @@ -11,20 +34,13 @@ let why3_local =
};
});
in
let why3 = why3_local; in

let provers =
if withProvers then [
alt-ergo
z3
] else []; in

stdenv.mkDerivation {
pname = "easycrypt";
version = "git";
src = ./.;

buildInputs = [ git ] ++ (with ocamlPackages; [
buildInputs = [ git why3-pin ] ++ (with ocamlPackages; [
ocaml
findlib
batteries
Expand All @@ -36,7 +52,6 @@ stdenv.mkDerivation {
menhir
menhirLib
yojson
why3
zarith
]);

Expand Down

0 comments on commit c7e7234

Please sign in to comment.