https://github.com/EasyCrypt/easycrypt
Revision 53f3e84b065a67014163ff0806173a695d6239e2 authored by François Dupressoir on 11 July 2022, 09:31:07 UTC, committed by Pierre-Yves Strub on 12 July 2022, 16:44:15 UTC
1 parent bef5649
Tip revision: 53f3e84b065a67014163ff0806173a695d6239e2 authored by François Dupressoir on 11 July 2022, 09:31:07 UTC
slightly reduce reliance on trivial SMT calls
slightly reduce reliance on trivial SMT calls
Tip revision: 53f3e84
default.nix
with import <nixpkgs> {};
if !lib.versionAtLeast why3.version "1.4" then
throw "please update your nixpkgs channel: nix-channel --update"
else
let why3_local =
if !lib.versionAtLeast why3.version "1.5" then
why3.overrideAttrs (o: rec {
version = "1.5.0";
src = fetchurl {
url = "https://why3.gitlabpages.inria.fr/releases/${o.pname}-${version}.tar.gz";
sha256 = "sha256:0qjh49pyqmg3xi09fn4lyzz23i6h18y9sgc8ayscvx3bwr3vcqhr";
};
})
else why3
; in
let why3 = why3_local; in
stdenv.mkDerivation {
name = "easycrypt-1.0";
src = ./.;
buildInputs = [ why3 ] ++ (with ocamlPackages; [
ocaml
findlib
batteries
dune_2
dune-build-info
dune-site
inifiles
menhir
menhirLib
merlin
yojson
zarith
]);
installFlags = [ "PREFIX=$(out)" ];
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...