Skip to content

Commit

Permalink
bluej: move to by-name, with lib; cleanup, RFC format (#356009)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Nov 29, 2024
2 parents a9464b3 + 7445868 commit 130f661
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
{ lib, stdenv, fetchurl, openjdk, glib, dpkg, wrapGAppsHook3 }:

{
lib,
stdenv,
fetchurl,
openjdk17,
openjfx17,
glib,
dpkg,
wrapGAppsHook3,
}:
let
openjdk = openjdk17.override {
enableJavaFX = true;
openjfx_jdk = openjfx17.override { withWebKit = true; };
};
in
stdenv.mkDerivation rec {
pname = "bluej";
version = "5.2.0";
Expand All @@ -8,11 +22,16 @@ stdenv.mkDerivation rec {
# 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";
url = "https://www.bluej.org/download/files/BlueJ-linux-${
builtins.replaceStrings [ "." ] [ "" ] version
}.deb";
sha256 = "sha256-sOT86opMa9ytxJlfURIsD06HiP+j+oz3lQ0DqmLV1wE=";
};

nativeBuildInputs = [ dpkg wrapGAppsHook3 ];
nativeBuildInputs = [
dpkg
wrapGAppsHook3
];
buildInputs = [ glib ];

dontWrapGApps = true;
Expand All @@ -36,13 +55,14 @@ stdenv.mkDerivation rec {
runHook postInstall
'';

meta = with lib; {
meta = {
description = "Simple integrated development environment for Java";
homepage = "https://www.bluej.org/";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.gpl2ClasspathPlus;
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
license = lib.licenses.gpl2ClasspathPlus;
mainProgram = "bluej";
maintainers = with maintainers; [ chvp ];
platforms = platforms.linux;
maintainers = with lib.maintainers; [ chvp ];
platforms = lib.platforms.linux;
};

}
7 changes: 0 additions & 7 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13433,13 +13433,6 @@ with pkgs;
gtk = gtk3;
};

bluej = callPackage ../applications/editors/bluej {
openjdk = openjdk17.override {
enableJavaFX = true;
openjfx_jdk = openjfx17.override { withWebKit = true; };
};
};

bluejeans-gui = callPackage ../applications/networking/instant-messengers/bluejeans { };

breezy = with python3Packages; toPythonApplication breezy;
Expand Down

0 comments on commit 130f661

Please sign in to comment.