Skip to content

Commit

Permalink
key: 2.10.0 -> 2.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst committed Oct 21, 2024
1 parent e056730 commit 28fafb9
Show file tree
Hide file tree
Showing 2 changed files with 456 additions and 149 deletions.
32 changes: 19 additions & 13 deletions pkgs/applications/science/logic/key/default.nix
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
{ lib, stdenv
, fetchurl
, fetchFromGitHub
, jdk
, gradle_7
, gradle_8
, jre
, makeWrapper
, makeDesktopItem
, copyDesktopItems
, testers
, git
, key
}:

let
gradle = gradle_7;
gradle = gradle_8;

in stdenv.mkDerivation rec {
pname = "key";
version = "2.10.0";
src = fetchurl {
url = "https://www.key-project.org/dist/${version}/key-${version}-sources.tgz";
sha256 = "1f201cbcflqd1z6ysrkh3mff5agspw3v74ybdc3s2lfdyz3b858w";
version = "2.12.2";
src = fetchFromGitHub {
owner = "KeYProject";
repo = "key";
rev = "refs/tags/KeY-${version}";
hash = "sha256-veqaWyWEiTot2cAjvyPG+Ra8/pqS4i6w6iR+qhozIM4=";
};
sourceRoot = "key-${version}/key";

nativeBuildInputs = [
jdk
gradle_7
gradle
makeWrapper
copyDesktopItems
git
];

executable-name = "KeY";
Expand All @@ -51,7 +54,9 @@ in stdenv.mkDerivation rec {
__darwinAllowLocalNetworking = true;

# tests are broken on darwin
doCheck = !stdenv.hostPlatform.isDarwin;
# TODO: on update to 2.12.3+, restore to !stdenv.hostPlatform.isDarwin;
# (currently some tests are failing)
doCheck = false;

installPhase = ''
runHook preInstall
Expand All @@ -61,7 +66,7 @@ in stdenv.mkDerivation rec {
mkdir -p $out/bin
mkdir -p $out/share/icons/hicolor/256x256/apps
cp key.ui/src/main/resources/de/uka/ilkd/key/gui/images/key-color-icon-square.png $out/share/icons/hicolor/256x256/apps/key.png
makeWrapper ${jre}/bin/java $out/bin/KeY \
makeWrapper ${lib.getExe jre} $out/bin/KeY \
--add-flags "-cp $out/share/java/KeY.jar de.uka.ilkd.key.core.Main"
runHook postInstall
Expand All @@ -76,6 +81,7 @@ in stdenv.mkDerivation rec {
meta = with lib; {
description = "Java formal verification tool";
homepage = "https://www.key-project.org"; # also https://formal.iti.kit.edu/key/
changelog = "https://keyproject.github.io/key-docs/changelog/";
longDescription = ''
The KeY System is a formal software development tool that aims to
integrate design, implementation, formal specification, and formal
Expand All @@ -84,8 +90,8 @@ in stdenv.mkDerivation rec {
Dynamic Logic for Java with a user-friendly graphical interface.
'';
license = licenses.gpl2;
maintainers = with maintainers; [ fgaz ];
maintainers = with maintainers; [ fgaz fliegendewurst ];
mainProgram = executable-name;
platforms = platforms.all;
platforms = jdk.meta.platforms;
};
}
Loading

0 comments on commit 28fafb9

Please sign in to comment.