nixpkgs/pkgs/applications/science/logic/cryptoverif/default.nix
R. RyanTM 517d5ff6e1 cryptoverif: 1.28 -> 2.00
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.

These checks were done:

- built on NixOS
- /nix/store/449i03imd329g3yi4gbmcbq9pv5ijpib-cryptoverif-2.00/bin/cryptoverif passed the binary check.
- 1 of 1 passed binary check by having a zero exit code.
- 0 of 1 passed binary check by having the new version present in output.
- found 2.00 with grep in /nix/store/449i03imd329g3yi4gbmcbq9pv5ijpib-cryptoverif-2.00
- directory tree listing: https://gist.github.com/b4cdf4e1befb51addd9b1dc1c39d78d9
- du listing: https://gist.github.com/18190fb11f51471790dcc668635aba6a
2018-06-06 14:40:27 -05:00

37 lines
1.1 KiB
Nix

{ stdenv, fetchurl, ocaml }:
stdenv.mkDerivation rec {
name = "cryptoverif-${version}";
version = "2.00";
src = fetchurl {
url = "http://prosecco.gforge.inria.fr/personal/bblanche/cryptoverif/cryptoverif${version}.tar.gz";
sha256 = "0g8pkj58b48zk4c0sgpln0qhbj82v75mz3w6cl3w5bvmxsbkwvy1";
};
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 ];
};
}