mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
forge-mtg: 1.6.57 -> 1.6.65 (#346334)
This commit is contained in:
commit
86c19dd026
|
@ -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.
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue