https://github.com/EasyCrypt/easycrypt
Revision 8f33b95ba4e89b25716ca2199a850370bcf5299e authored by Stephane Graham-Lengrand on 07 October 2020, 23:19:47 UTC, committed by Pierre-Yves Strub on 09 October 2020, 08:41:05 UTC
1 parent 3007982
Raw File
Tip revision: 8f33b95ba4e89b25716ca2199a850370bcf5299e authored by Stephane Graham-Lengrand on 07 October 2020, 23:19:47 UTC
First attempt at handling Why3 1.3.X
Tip revision: 8f33b95
default.nix
with import <nixpkgs> {};

let why3_1_2 = why3.overrideAttrs (o: {
  name = "why3-1.2.1";
  src = fetchurl {
    url = "https://gforge.inria.fr/frs/download.php/file/38185/why3-1.2.1.tar.gz";
    sha256 = "014gkwisjp05x3342zxkryb729p02ngx1hcjjsrplpa53jzgz647";
  };
  patches = [
    # Compatibility with js_of_ocaml 3.5
    (fetchpatch {
      url = "https://gitlab.inria.fr/why3/why3/commit/269ab313382fe3e64ef224813937314748bf7cf0.diff";
      sha256 = "0i92wdnbh8pihvl93ac0ma1m5g95jgqqqj4kw6qqvbbjjqdgvzwa";
    })
  ];
}); in

stdenv.mkDerivation {
  name = "easycrypt-1.0";
  src = ./.;
  buildInputs = [ ]
    ++ (with ocamlPackages; [ ocaml findlib ocamlbuild (batteries.overrideAttrs (o: { doCheck = false; })) menhir merlin zarith inifiles why3_1_2 yojson])
    ;
  installFlags = [ "PREFIX=$(out)" ];
}
back to top