2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, jdk }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bluej";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "5.0.3";
|
2020-09-25 04:45:31 +00:00
|
|
|
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.bluej.org/download/files/BlueJ-linux-${builtins.replaceStrings ["."] [""] version}.deb";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-OarqmptxZc7xEEYeoCVqHXkAvfzfSYx5nUp/iWPyoqw=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
ar xf $src
|
|
|
|
tar xf data.tar.xz
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cp -r usr/* $out
|
|
|
|
|
|
|
|
makeWrapper ${jdk}/bin/java $out/bin/bluej \
|
|
|
|
--add-flags "-Djavafx.embed.singleThread=true -Dawt.useSystemAAFontSettings=on -Xmx512M -cp \"$out/share/bluej/bluej.jar\" bluej.Boot"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-09-25 04:45:31 +00:00
|
|
|
description = "A simple integrated development environment for Java";
|
|
|
|
homepage = "https://www.bluej.org/";
|
|
|
|
license = licenses.gpl2ClasspathPlus;
|
2021-02-22 21:28:39 +00:00
|
|
|
maintainers = [ maintainers.chvp ];
|
2020-09-25 04:45:31 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|