2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, eprover, ocaml, perl, zlib }:
|
2010-12-01 21:29:42 +00:00
|
|
|
|
2016-07-31 12:57:29 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "leo2";
|
2016-07-31 12:57:29 +01:00
|
|
|
version = "1.6.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://page.mi.fu-berlin.de/cbenzmueller/leo/leo2_v${version}.tgz";
|
2014-08-12 00:57:40 +01:00
|
|
|
sha256 = "1wjpmizb181iygnd18lx7p77fwaci2clgzs5ix5j51cc8f3pazmv";
|
2010-12-01 21:29:42 +00:00
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ eprover ocaml perl zlib ];
|
2010-12-01 21:29:42 +00:00
|
|
|
|
2016-07-31 12:57:29 +01:00
|
|
|
sourceRoot = "leo2/src";
|
2010-12-01 21:29:42 +00:00
|
|
|
|
2016-07-31 12:57:29 +01:00
|
|
|
preConfigure = "patchShebangs configure";
|
2010-12-01 21:29:42 +00:00
|
|
|
|
2016-07-31 12:57:29 +01:00
|
|
|
buildFlags = [ "opt" ];
|
2010-12-01 21:29:42 +00:00
|
|
|
|
2016-07-31 12:57:29 +01:00
|
|
|
preInstall = "mkdir -p $out/bin";
|
|
|
|
|
|
|
|
postInstall = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/etc"
|
2010-12-01 21:29:42 +00:00
|
|
|
echo -e "e = ${eprover}/bin/eprover\\nepclextract = ${eprover}/bin/epclextract" > "$out/etc/leoatprc"
|
|
|
|
|
2016-07-31 12:57:29 +01:00
|
|
|
wrapProgram $out/bin/leo \
|
|
|
|
--add-flags "--atprc $out/etc/leoatprc"
|
|
|
|
'';
|
2014-08-12 00:57:40 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2010-12-01 21:29:42 +00:00
|
|
|
description = "A high-performance typed higher order prover";
|
2016-07-31 12:57:29 +01:00
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.bsd3;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.leoprover.org/";
|
2010-12-01 21:29:42 +00:00
|
|
|
};
|
2016-07-31 12:57:29 +01:00
|
|
|
}
|