eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
48 lines
1.5 KiB
Nix
48 lines
1.5 KiB
Nix
{ lib, stdenv, fetchurl, openjdk, glib, dpkg, wrapGAppsHook3 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bluej";
|
|
version = "5.2.0";
|
|
|
|
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";
|
|
sha256 = "sha256-sOT86opMa9ytxJlfURIsD06HiP+j+oz3lQ0DqmLV1wE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ dpkg wrapGAppsHook3 ];
|
|
buildInputs = [ glib ];
|
|
|
|
dontWrapGApps = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out
|
|
cp -r usr/* $out
|
|
|
|
rm -r $out/share/bluej/jdk
|
|
rm -r $out/share/bluej/javafx
|
|
rm -r $out/share/bluej/javafx-*.jar
|
|
|
|
makeWrapper ${openjdk}/bin/java $out/bin/bluej \
|
|
"''${gappsWrapperArgs[@]}" \
|
|
--add-flags "-Dawt.useSystemAAFontSettings=on -Xmx512M \
|
|
--add-opens javafx.graphics/com.sun.glass.ui=ALL-UNNAMED \
|
|
-cp $out/share/bluej/boot.jar bluej.Boot"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A simple integrated development environment for Java";
|
|
homepage = "https://www.bluej.org/";
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
license = licenses.gpl2ClasspathPlus;
|
|
mainProgram = "bluej";
|
|
maintainers = with maintainers; [ chvp ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|