2016-06-24 06:36:44 +01:00
|
|
|
{ stdenv, fetchurl, ocaml }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "cryptoverif";
|
2020-10-22 21:22:56 +01:00
|
|
|
version = "2.03pl1";
|
2016-06-24 06:36:44 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://prosecco.gforge.inria.fr/personal/bblanche/cryptoverif/cryptoverif${version}.tar.gz";
|
2020-10-22 21:22:56 +01:00
|
|
|
sha256 = "0q7qa1qm7mbky3m36445gdmgmkb9mrhrdsk7mmwn8fzw0rfc6z00";
|
2016-06-24 06:36:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml ];
|
|
|
|
|
|
|
|
/* Fix up the frontend to load the 'default' cryptoverif library
|
|
|
|
** from under $out/libexec. By default, it expects to find the files
|
|
|
|
** in $CWD which doesn't work. */
|
|
|
|
patchPhase = ''
|
2020-12-10 16:03:24 +00:00
|
|
|
substituteInPlace ./src/syntax.ml \
|
2016-06-24 06:36:44 +01:00
|
|
|
--replace \"default\" \"$out/libexec/default\"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = "./build";
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/libexec
|
|
|
|
cp ./cryptoverif $out/bin
|
|
|
|
cp ./default.cvl $out/libexec
|
|
|
|
cp ./default.ocvl $out/libexec
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Cryptographic protocol verifier in the computational model";
|
2019-04-22 09:14:28 +01:00
|
|
|
homepage = "https://prosecco.gforge.inria.fr/personal/bblanche/cryptoverif/";
|
2016-06-24 06:36:44 +01:00
|
|
|
license = stdenv.lib.licenses.cecill-b;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|