ganttproject-bin: enable anti-aliasing by default

On my setup the GUI text is anti-aliased. Since I have a hi-res display
it works quite well for me but since I can imagine that other user may
not want anti-aliasing on their machines (perhaps because they have
lower-res displays) and can override the javaOptions array to control
this behavior.
This commit is contained in:
David Asabina 2019-01-24 12:24:14 +01:00
parent a2f3b8653d
commit 6932d934a2

View File

@ -1,5 +1,6 @@
{ stdenv, fetchzip, makeDesktopItem, makeWrapper
, jre }:
{ stdenv, lib, fetchzip, makeDesktopItem, makeWrapper
, jre
}:
stdenv.mkDerivation rec {
name = "ganttproject-bin-${version}";
@ -28,13 +29,19 @@ stdenv.mkDerivation rec {
categories = "Office;Application;";
};
javaOptions = [
"-Dawt.useSystemAAFontSettings=on"
];
in ''
mkdir -pv "$out/share/ganttproject"
cp -rv * "$out/share/ganttproject"
mkdir -pv "$out/bin"
wrapProgram "$out/share/ganttproject/ganttproject" \
--set JAVA_HOME "${jre}"
--set JAVA_HOME "${jre}" \
--set _JAVA_OPTIONS "${builtins.toString javaOptions}"
mv -v "$out/share/ganttproject/ganttproject" "$out/bin"
cp -rv "${desktopItem}/share/applications" "$out/share"