pattypan: build with JDK that includes JavaFX

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu
2023-05-18 21:52:38 +02:00
parent 7721e0d2c1
commit 9989f9d20c
2 changed files with 5 additions and 5 deletions
+2 -4
View File
@@ -1,8 +1,6 @@
{ lib
, stdenv
, fetchFromGitHub
, unzip
, jre
, jdk
, ant
, makeWrapper
@@ -24,7 +22,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ copyDesktopItems jdk ant makeWrapper wrapGAppsHook ];
buildInputs = [ glib jre ];
buildInputs = [ glib jdk ];
buildPhase = ''
runHook preBuild
@@ -37,7 +35,7 @@ stdenv.mkDerivation rec {
runHook preInstall
mkdir -p $out/bin $out/share/java
cp pattypan.jar $out/share/java/pattypan.jar
makeWrapper ${jre}/bin/java $out/bin/pattypan \
makeWrapper ${jdk}/bin/java $out/bin/pattypan \
--add-flags "-cp $out/share/java/pattypan.jar pattypan.Launcher"
runHook postInstall
'';
+3 -1
View File
@@ -30862,7 +30862,9 @@ with pkgs;
molsketch = libsForQt5.callPackage ../applications/editors/molsketch { };
pattypan = callPackage ../applications/misc/pattypan { };
pattypan = callPackage ../applications/misc/pattypan {
jdk = jdk.override { enableJavaFX = true; };
};
praat = callPackage ../applications/audio/praat { };