Merge pull request #98968 from charvp/pr/init-greenfoot
greenfoot: init at 3.6.1
This commit is contained in:
commit
46f7fbd5fc
2 changed files with 42 additions and 0 deletions
38
pkgs/applications/editors/greenfoot/default.nix
Normal file
38
pkgs/applications/editors/greenfoot/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ stdenv, fetchurl, makeWrapper, jdk }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "greenfoot";
|
||||
version = "3.6.1";
|
||||
src = fetchurl {
|
||||
# We use the deb here. First instinct might be to go for the "generic" JAR
|
||||
# download, but that is actually a graphical installer that is much harder
|
||||
# to unpack than the deb.
|
||||
url = "https://www.greenfoot.org/download/files/Greenfoot-linux-${builtins.replaceStrings ["."] [""] version}.deb";
|
||||
sha256 = "112h6plpclj8kbv093m4pcczljhpd8d47d7a2am1yfgbyckx6hf0";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
unpackPhase = ''
|
||||
ar xf $src
|
||||
tar xf data.tar.xz
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r usr/* $out
|
||||
rm -r $out/share/greenfoot/jdk
|
||||
rm -r $out/share/greenfoot/javafx
|
||||
|
||||
makeWrapper ${jdk}/bin/java $out/bin/greenfoot \
|
||||
--add-flags "-Djavafx.embed.singleThread=true -Dawt.useSystemAAFontSettings=on -Xmx512M -cp \"$out/share/greenfoot/bluej.jar\" bluej.Boot -greenfoot=true -bluej.compiler.showunchecked=false -greenfoot.scenarios=$out/share/doc/Greenfoot/scenarios -greenfoot.url.javadoc=file://$out/share/doc/Greenfoot/API"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A simple integrated development environment for Java";
|
||||
homepage = "https://www.greenfoot.org/";
|
||||
license = licenses.gpl2ClasspathPlus;
|
||||
maintainers = [ maintainers.charvp ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -21025,6 +21025,10 @@ in
|
|||
|
||||
gpg-mdp = callPackage ../applications/misc/gpg-mdp { };
|
||||
|
||||
greenfoot = callPackage ../applications/editors/greenfoot/default.nix {
|
||||
jdk = jetbrains.jdk;
|
||||
};
|
||||
|
||||
gspeech = callPackage ../applications/audio/gspeech { };
|
||||
|
||||
icesl = callPackage ../applications/misc/icesl { };
|
||||
|
|
Loading…
Reference in a new issue