shattered-pixel-dungeon: 1.1.2 -> 2.0.2
This commit is contained in:
parent
a96075f5ee
commit
a5472cf9b5
2 changed files with 60 additions and 11 deletions
|
@ -2,7 +2,7 @@
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, nixosTests
|
, nixosTests
|
||||||
, gradle_6
|
, gradle
|
||||||
, perl
|
, perl
|
||||||
, jre
|
, jre
|
||||||
, libpulseaudio
|
, libpulseaudio
|
||||||
|
@ -10,17 +10,19 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "shattered-pixel-dungeon";
|
pname = "shattered-pixel-dungeon";
|
||||||
version = "1.1.2";
|
version = "2.0.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "00-Evan";
|
owner = "00-Evan";
|
||||||
repo = "shattered-pixel-dungeon";
|
repo = "shattered-pixel-dungeon";
|
||||||
# NOTE: always use the commit sha, not the tag. Tags _will_ disappear!
|
rev = "v${version}";
|
||||||
# https://github.com/00-Evan/shattered-pixel-dungeon/issues/596
|
sha256 = "sha256-gg8FHLkw964mYejXvK5GClTvTLGK3FyXR8Kkxjl/pRs=";
|
||||||
rev = "5d1a2dce6b554b40f6737ead45d411fd98f4c67d";
|
|
||||||
sha256 = "sha256-Vu7K0NnqFY298BIQV9AwNEahV0eJl14tAeq+rw6KrtM=";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./disable-beryx.patch
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# disable gradle plugins with native code and their targets
|
# disable gradle plugins with native code and their targets
|
||||||
perl -i.bak1 -pe "s#(^\s*id '.+' version '.+'$)#// \1#" build.gradle
|
perl -i.bak1 -pe "s#(^\s*id '.+' version '.+'$)#// \1#" build.gradle
|
||||||
|
@ -32,8 +34,8 @@ let
|
||||||
# fake build to pre-download deps into fixed-output derivation
|
# fake build to pre-download deps into fixed-output derivation
|
||||||
deps = stdenv.mkDerivation {
|
deps = stdenv.mkDerivation {
|
||||||
pname = "${pname}-deps";
|
pname = "${pname}-deps";
|
||||||
inherit version src postPatch;
|
inherit version src patches postPatch;
|
||||||
nativeBuildInputs = [ gradle_6 perl ];
|
nativeBuildInputs = [ gradle perl ];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
export GRADLE_USER_HOME=$(mktemp -d)
|
export GRADLE_USER_HOME=$(mktemp -d)
|
||||||
# https://github.com/gradle/gradle/issues/4426
|
# https://github.com/gradle/gradle/issues/4426
|
||||||
|
@ -47,13 +49,13 @@ let
|
||||||
| sh
|
| sh
|
||||||
'';
|
'';
|
||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
outputHash = "sha256-UI5/ZJbUtEz1Fr+qn6a8kzi9rrP+lVrpBbuDv8TG5y0=";
|
outputHash = "sha256-ojwvs6j3R31723lfRlKdeyR5+txnetyK3foJTLqy28Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
inherit pname version src postPatch;
|
inherit pname version src patches postPatch;
|
||||||
|
|
||||||
nativeBuildInputs = [ gradle_6 perl makeWrapper ];
|
nativeBuildInputs = [ gradle perl makeWrapper ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
export GRADLE_USER_HOME=$(mktemp -d)
|
export GRADLE_USER_HOME=$(mktemp -d)
|
||||||
|
|
47
pkgs/games/shattered-pixel-dungeon/disable-beryx.patch
Normal file
47
pkgs/games/shattered-pixel-dungeon/disable-beryx.patch
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
diff --git a/desktop/build.gradle b/desktop/build.gradle
|
||||||
|
index 97f35f7..afd5116 100644
|
||||||
|
--- a/desktop/build.gradle
|
||||||
|
+++ b/desktop/build.gradle
|
||||||
|
@@ -1,6 +1,7 @@
|
||||||
|
-plugins {
|
||||||
|
- id 'org.beryx.runtime' version '1.12.7'
|
||||||
|
-}
|
||||||
|
+//plugins {
|
||||||
|
+// id 'org.beryx.runtime' version '1.12.7'
|
||||||
|
+//}
|
||||||
|
+apply plugin: "java"
|
||||||
|
|
||||||
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
||||||
|
sourceCompatibility = targetCompatibility = appJavaCompatibility
|
||||||
|
@@ -43,11 +44,11 @@ task release(type: Jar) {
|
||||||
|
attributes 'Implementation-Version': appVersionCode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
-installDist.dependsOn release
|
||||||
|
-startScripts.dependsOn release
|
||||||
|
-jpackageImage.dependsOn release
|
||||||
|
+//installDist.dependsOn release
|
||||||
|
+//startScripts.dependsOn release
|
||||||
|
+//jpackageImage.dependsOn release
|
||||||
|
|
||||||
|
-runtime {
|
||||||
|
+/*runtime {
|
||||||
|
modules = ['java.base',
|
||||||
|
'java.desktop',
|
||||||
|
'jdk.unsupported',
|
||||||
|
@@ -102,7 +103,7 @@ runtime {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
-}
|
||||||
|
+}*/
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation project(':core')
|
||||||
|
@@ -123,4 +124,4 @@ dependencies {
|
||||||
|
|
||||||
|
implementation project(':services:updates:githubUpdates')
|
||||||
|
implementation project(':services:news:shatteredNews')
|
||||||
|
-}
|
||||||
|
\ No newline at end of file
|
||||||
|
+}
|
Loading…
Reference in a new issue