crossfire-gridarta: init at 2025-04

This is the editor for Crossfire map and archetype data.
This commit is contained in:
Rebecca Kelly
2025-04-30 22:00:04 -04:00
committed by Rebecca Kelly
parent b622ce87a8
commit 2386aba1fd
@@ -0,0 +1,53 @@
{
stdenv,
lib,
fetchgit,
makeWrapper,
jre,
gradle,
}:
stdenv.mkDerivation rec {
name = "crossfire-gridarta";
version = "2025-04";
src = fetchgit {
url = "https://git.code.sf.net/p/gridarta/gridarta";
rev = "9ff39a63071fc76141117eac97a27c07d312cfb5";
hash = "sha256-UotvRJey0SXhKjyKo0L7MiDtqvsBOUcT0315fkAKwb0=";
};
nativeBuildInputs = [
jre
gradle
makeWrapper
];
buildPhase = ''
runHook preBuild
gradle :src:crossfire:createEditorJar
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -pv $out/share/java $out/bin
cp src/crossfire/build/libs/CrossfireEditor.jar $out/share/java/
makeWrapper ${jre}/bin/java $out/bin/crossfire-gridarta \
--add-flags "-jar $out/share/java/CrossfireEditor.jar" \
--set _JAVA_OPTIONS '-Dawt.useSystemAAFontSettings=on' \
--set _JAVA_AWT_WM_NONREPARENTING 1
runHook postInstall
'';
meta = with lib; {
description = "Map and archetype editor for the Crossfire free MMORPG";
homepage = "http://crossfire.real-time.com/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ ToxicFrog ];
};
}