forked from mirrors/nixpkgs
6f2d2818b0
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/cryptoverif/versions
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ stdenv, fetchurl, ocaml }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "cryptoverif-${version}";
|
|
version = "2.01";
|
|
|
|
src = fetchurl {
|
|
url = "http://prosecco.gforge.inria.fr/personal/bblanche/cryptoverif/cryptoverif${version}.tar.gz";
|
|
sha256 = "122pryci8rsdzv9qszw11g3izh78r2lvd1raahv2j7qmvgi76nab";
|
|
};
|
|
|
|
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";
|
|
homepage = "https://prosecco.gforge.inria.fr/personal/bblanche/cryptoverif/";
|
|
license = stdenv.lib.licenses.cecill-b;
|
|
platforms = stdenv.lib.platforms.unix;
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
};
|
|
}
|