nixpkgs/pkgs/applications/science/logic/cryptoverif/default.nix
Ryan Mulligan 72a22296dd cryptoverif: 1.22 -> 1.28
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/p13fvkr38qrak3ng6lpmj4z1palhr2in-cryptoverif-1.28/bin/cryptoverif --help` got 0 exit code
- found 1.28 with grep in /nix/store/p13fvkr38qrak3ng6lpmj4z1palhr2in-cryptoverif-1.28
- found 1.28 in filename of file in /nix/store/p13fvkr38qrak3ng6lpmj4z1palhr2in-cryptoverif-1.28
2018-02-26 08:32:20 +01:00

37 lines
1.1 KiB
Nix

{ stdenv, fetchurl, ocaml }:
stdenv.mkDerivation rec {
name = "cryptoverif-${version}";
version = "1.28";
src = fetchurl {
url = "http://prosecco.gforge.inria.fr/personal/bblanche/cryptoverif/cryptoverif${version}.tar.gz";
sha256 = "0vssz751g1nn8wclkiwgghpm475jl00xkivc164vgbr9acxsr7n7";
};
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 = "http://prosecco.gforge.inria.fr/personal/bblanche/cryptoverif/";
license = stdenv.lib.licenses.cecill-b;
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
};
}