mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
iprover: 3.1 → 3.8.1
This commit is contained in:
parent
30af725fe6
commit
2225c6a883
@ -1,29 +1,39 @@
|
||||
{ lib, stdenv, fetchurl, ocaml, eprover, zlib }:
|
||||
{ lib, stdenv, fetchFromGitLab, ocamlPackages, eprover, z3, zlib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "iprover";
|
||||
version = "3.1";
|
||||
version = "3.8.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.cs.man.ac.uk/~korovink/iprover/iprover-v${version}.tar.gz";
|
||||
sha256 = "0lik8p7ayhjwpkln1iwf0ri84ramhch74j5nj6z7ph6wfi92pgg8";
|
||||
src = fetchFromGitLab {
|
||||
owner = "korovin";
|
||||
repo = pname;
|
||||
rev = "f61edb113b705606c7314dc4dce0687832c3169f";
|
||||
hash = "sha256-XXqbEoYKjoktE3ZBEIEFjLhA1B75zhnfPszhe8SvbI8=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace configure --replace Linux Debian
|
||||
'';
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [ ocaml eprover ];
|
||||
buildInputs = [ zlib ];
|
||||
nativeBuildInputs = [ eprover ] ++ (with ocamlPackages; [
|
||||
ocaml findlib
|
||||
]);
|
||||
buildInputs = [ zlib ocamlPackages.z3 z3 ] ++ (with ocamlPackages; [
|
||||
ocamlgraph yojson zarith
|
||||
]);
|
||||
|
||||
preConfigure = "patchShebangs .";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p "$out/bin"
|
||||
cp iproveropt "$out/bin"
|
||||
|
||||
mkdir -p "$out/share/${pname}-${version}"
|
||||
cp *.p "$out/share/${pname}-${version}"
|
||||
echo -e "#! ${stdenv.shell}\\n$out/bin/iproveropt --clausifier \"${eprover}/bin/eprover\" --clausifier_options \" --tstp-format --silent --cnf \" \"\$@\"" > "$out"/bin/iprover
|
||||
chmod a+x "$out"/bin/iprover
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user