nixpkgs/pkgs/applications/science/logic/cryptoverif/default.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

2021-01-15 13:21:58 +00:00
{ lib, stdenv, fetchurl, ocaml }:
stdenv.mkDerivation rec {
pname = "cryptoverif";
2020-12-10 16:03:29 +00:00
version = "2.04";
src = fetchurl {
url = "http://prosecco.gforge.inria.fr/personal/bblanche/cryptoverif/cryptoverif${version}.tar.gz";
2020-12-10 16:03:29 +00:00
sha256 = "1mzk6n0g2vdsv38y493zg85lxrpz72b92cmsray3g970xzanqd6s";
};
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/syntax.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";
homepage = "https://prosecco.gforge.inria.fr/personal/bblanche/cryptoverif/";
2021-01-15 13:21:58 +00:00
license = lib.licenses.cecill-b;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.thoughtpolice ];
};
}