https://github.com/EasyCrypt/easycrypt
Revision 472a2d4f25a98707fe2b2435b1b1e5a4206f5521 authored by François Dupressoir on 14 March 2023, 14:34:41 UTC, committed by Pierre-Yves Strub on 20 March 2023, 16:28:35 UTC
1 parent 9f46b97
Raw File
Tip revision: 472a2d4f25a98707fe2b2435b1b1e5a4206f5521 authored by François Dupressoir on 14 March 2023, 14:34:41 UTC
bump Why3 version in .nix files
Tip revision: 472a2d4
shell.nix
{ withProvers ? true, devDeps ? [] }:

with import <nixpkgs> {};

let why3_local =
  why3.overrideAttrs (o : rec {
    version = "1.6.0";
    src = fetchurl {
      url = "https://why3.gitlabpages.inria.fr/releases/${o.pname}-${version}.tar.gz";
      sha256 = "sha256-hFvM6kHScaCtcHCc6Vezl9CR7BFbiKPoTEh7kj0ZJxw=";
    };
  });
in
let why3 = why3_local; in

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

pkgs.mkShell {
  buildInputs = devDeps ++ [ git ] ++ (with ocamlPackages; [
    ocaml
    findlib
    batteries
    camlp-streams
    dune_3
    dune-build-info
    dune-site
    inifiles
    menhir
    menhirLib
    merlin
    yojson
    why3
    zarith
  ]) ++ (with python3Packages; [
    pyyaml
  ]);
}
back to top