diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/science/logic/statverif/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/science/logic/statverif/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/science/logic/statverif/default.nix b/nixpkgs/pkgs/applications/science/logic/statverif/default.nix new file mode 100644 index 000000000000..9e51849a93b9 --- /dev/null +++ b/nixpkgs/pkgs/applications/science/logic/statverif/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchurl, ocaml }: + +stdenv.mkDerivation rec { + name = "statverif-${version}"; + version = "1.86pl4"; + + src = fetchurl { + url = "http://prosecco.gforge.inria.fr/personal/bblanche/proverif/proverif${version}.tar.gz"; + sha256 = "163vdcixs764jj8xa08w80qm4kcijf7xj911yp8jvz6pi1q5g13i"; + }; + + pf-patch = fetchurl { + url = "http://markryan.eu/research/statverif/files/proverif-${version}-statverif-2657ab4.patch"; + sha256 = "113jjhi1qkcggbsmbw8fa9ln8vs7vy2r288szks7rn0jjn0wxmbw"; + }; + + buildInputs = [ ocaml ]; + + patchPhase = "patch -p1 < ${pf-patch}"; + buildPhase = "./build"; + installPhase = '' + mkdir -p $out/bin + cp ./proverif $out/bin/statverif + cp ./proveriftotex $out/bin/statveriftotex + ''; + + meta = { + description = "Verification of stateful processes (via Proverif)"; + homepage = "http://markryan.eu/research/statverif/"; + license = stdenv.lib.licenses.gpl2; + platforms = stdenv.lib.platforms.unix; + maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; + }; +} |