Skip to content

Commit

Permalink
forge-mtg: 1.6.57 -> 1.6.65 (#346334)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbsds authored Oct 19, 2024
2 parents 9d72554 + 3301bbd commit 86c19dd
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions pkgs/games/forge-mtg/default.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
{ coreutils
, fetchFromGitHub
, gnused
, lib
, maven
, makeWrapper
, openjdk
{
coreutils,
fetchFromGitHub,
gnused,
lib,
maven,
makeWrapper,
openjdk,
}:

let
version = "1.6.57";
version = "1.6.65";

src = fetchFromGitHub {
owner = "Card-Forge";
repo = "forge";
rev = "forge-${version}";
hash = "sha256-pxnnqLfyblbIgIRZZrx8Y8K43zUv9mu7PzZ7zltpEUQ=";
hash = "sha256-MCJl3nBHbX/O24bzD4aQ12eMWxYY2qJC5vomvtsIBek=";
};

# launch4j downloads and runs a native binary during the package phase.
Expand All @@ -25,7 +26,7 @@ maven.buildMavenPackage {
pname = "forge-mtg";
inherit version src patches;

mvnHash = "sha256-QK9g0tG75lIhEtf4jW03N32YbD9Fe5iI0JTuqmCTtnE=";
mvnHash = "sha256-ouF0Ja3oGrlUCcT0PzI5i9FQ+oLdEhE/LvhJ0QGErvI=";

doCheck = false; # Needs a running Xorg

Expand All @@ -50,7 +51,13 @@ maven.buildMavenPackage {
for commandToInstall in forge forge-adventure forge-adventure-editor; do
chmod 555 $out/share/forge/$commandToInstall.sh
makeWrapper $out/share/forge/$commandToInstall.sh $out/bin/$commandToInstall \
--prefix PATH : ${lib.makeBinPath [ coreutils openjdk gnused ]} \
--prefix PATH : ${
lib.makeBinPath [
coreutils
openjdk
gnused
]
} \
--set JAVA_HOME ${openjdk}/lib/openjdk \
--set SENTRY_DSN ""
done
Expand Down

0 comments on commit 86c19dd

Please sign in to comment.