swh:1:snp:510544f7899e7fee487ee146b60cd834a253fd12
Tip revision: 9d08a76fb50773e0b6b1afad31f37dfb821fee75 authored by Benjamin Gregoire on 24 November 2022, 16:10:02 UTC
fix #154
fix #154
Tip revision: 9d08a76
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
let merlin =
ocamlPackages.merlin.overrideAttrs (o: {
doCheck = false;
}); in
stdenv.mkDerivation {
name = "easycrypt-1.0";
src = ./.;
buildInputs = [ why3 merlin] ++ (with ocamlPackages; [
ocaml
findlib
batteries
camlp-streams
dune_2
dune-build-info
dune-site
inifiles
menhir
menhirLib
yojson
zarith
]);
installFlags = [ "PREFIX=$(out)" ];
}