2016-06-24 05:36:44 +00:00
|
|
|
{ stdenv, fetchurl, ocaml }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cryptoverif-${version}";
|
2019-07-01 09:55:52 +00:00
|
|
|
version = "2.01pl1";
|
2016-06-24 05:36:44 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://prosecco.gforge.inria.fr/personal/bblanche/cryptoverif/cryptoverif${version}.tar.gz";
|
2019-07-01 09:55:52 +00:00
|
|
|
sha256 = "1bkmrv3wsy8mwhrxd3z3br9zgv37c2w6443rm4s9jl0aphcgnbiw";
|
2016-06-24 05:36:44 +00: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 = ''
|
|
|
|
substituteInPlace ./src/settings.ml \
|
|
|
|
--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 08:14:28 +00:00
|
|
|
homepage = "https://prosecco.gforge.inria.fr/personal/bblanche/cryptoverif/";
|
2016-06-24 05:36:44 +00:00
|
|
|
license = stdenv.lib.licenses.cecill-b;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|