2021-01-17 00:15:33 +00:00
|
|
|
{lib, stdenv, fetchurl, openjdk, runtimeShell}:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "leo3";
|
|
|
|
version = "1.2";
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
src = fetchurl {
|
2020-04-24 23:36:52 +00:00
|
|
|
url = "https://github.com/leoprover/Leo-III/releases/download/v${version}/leo3.jar";
|
|
|
|
sha256 = "1lgwxbr1rnk72rnvc8raq5i1q71ckhn998pwd9xk6zf27wlzijk7";
|
|
|
|
};
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
dontUnpack = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"/{bin,lib/java/leo3}
|
2021-07-14 22:03:04 +00:00
|
|
|
cp "${src}" "$out/lib/java/leo3/leo3.jar"
|
2020-04-24 23:36:52 +00:00
|
|
|
echo "#!${runtimeShell}" > "$out/bin/leo3"
|
2020-09-25 04:45:31 +00:00
|
|
|
echo "'${openjdk}/bin/java' -jar '$out/lib/java/leo3/leo3.jar' \"\$@\"" >> "$out/bin/leo3"
|
2020-04-24 23:36:52 +00:00
|
|
|
chmod a+x "$out/bin/leo3"
|
|
|
|
'';
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Automated theorem prover for classical higher-order logic with choice";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "leo3";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2021-07-14 22:03:04 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [maintainers.raskin];
|
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://page.mi.fu-berlin.de/lex/leo3/";
|
|
|
|
};
|
|
|
|
}
|