Skip to content

Commit

Permalink
Merge pull request #127853 from IvarWithoutBones/fix/amidst-jre
Browse files Browse the repository at this point in the history
amidst: use jre instead of jre8
  • Loading branch information
SuperSandro2000 committed Jun 23, 2021
2 parents a0e8af4 + afb2e12 commit 1905f5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/tools/games/amidst/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
, stdenv
, fetchurl
, makeWrapper
, jre8 }: # TODO: Update this to the latest version of java upon the next release. This is currently not done because of https://github.com/toolbox4minecraft/amidst/issues/960
, jre }:

stdenv.mkDerivation rec {
pname = "amidst";
Expand All @@ -15,12 +15,12 @@ stdenv.mkDerivation rec {

dontUnpack = true;

nativeBuildInputs = [ jre8 makeWrapper ];
nativeBuildInputs = [ jre makeWrapper ];

installPhase = ''
mkdir -p $out/{bin,lib/amidst}
cp $src $out/lib/amidst/amidst.jar
makeWrapper ${jre8}/bin/java $out/bin/amidst \
makeWrapper ${jre}/bin/java $out/bin/amidst \
--add-flags "-jar $out/lib/amidst/amidst.jar"
'';

Expand Down

0 comments on commit 1905f5f

Please sign in to comment.