2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, ocaml }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cryptoverif";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "2.05";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://prosecco.gforge.inria.fr/personal/bblanche/cryptoverif/cryptoverif${version}.tar.gz";
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "sha256-F5eVN5ATYo9Ivpi2eYh96ktuTWUeoqgWMR4BqHu8EFs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ ocaml ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
/* 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-25 13:55:36 +00:00
|
|
|
substituteInPlace ./src/syntax.ml \
|
2020-04-24 23:36:52 +00: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";
|
|
|
|
homepage = "https://prosecco.gforge.inria.fr/personal/bblanche/cryptoverif/";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.cecill-b;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|