3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/logic/iprover/default.nix

34 lines
1,009 B
Nix
Raw Normal View History

2017-07-17 22:45:27 +01:00
{ stdenv, fetchurl, ocaml, eprover, zlib }:
stdenv.mkDerivation rec {
name = "iprover-${version}";
2017-07-17 22:45:27 +01:00
version = "2.5";
src = fetchurl {
2017-07-17 22:45:27 +01:00
url = "http://www.cs.man.ac.uk/~korovink/iprover/iprover-v${version}.tar.gz";
sha256 = "1mbxjczp6nqw0p33glqmw973c268yzy4gxflk1lfiyiihrjdhinb";
};
2017-07-17 22:45:27 +01:00
buildInputs = [ ocaml eprover zlib ];
preConfigure = ''patchShebangs .'';
installPhase = ''
mkdir -p "$out/bin"
cp iproveropt "$out/bin"
mkdir -p "$out/share/${name}"
cp *.p "$out/share/${name}"
echo -e "#! /bin/sh\\n$out/bin/iproveropt --clausifier \"${eprover}/bin/eprover\" --clausifier_options \" --tstp-format --silent --cnf \" \"\$@\"" > "$out"/bin/iprover
chmod a+x "$out"/bin/iprover
'';
2014-07-28 10:43:20 +01:00
meta = with stdenv.lib; {
description = "An automated first-order logic theorem prover";
2017-07-17 22:45:27 +01:00
homepage = http://www.cs.man.ac.uk/~korovink/iprover/;
maintainers = with maintainers; [ raskin gebner ];
platforms = platforms.linux;
license = licenses.gpl3;
};
}