summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authornotgne2 <gen2@gen2.space>2020-08-06 19:01:30 -0700
committerJon <jonringer@users.noreply.github.com>2020-08-07 10:20:20 -0700
commit8af72d55305fe1e0ba8657a2b69fb20ca347fc9a (patch)
treee65175f20e67a0a85ea896f877d03002a90d2c6e /pkgs/games
parent2b09ecd1681675c70fa8b1de997de2092762af62 (diff)
downloadnixpkgs-8af72d55305fe1e0ba8657a2b69fb20ca347fc9a.tar
nixpkgs-8af72d55305fe1e0ba8657a2b69fb20ca347fc9a.tar.gz
nixpkgs-8af72d55305fe1e0ba8657a2b69fb20ca347fc9a.tar.bz2
nixpkgs-8af72d55305fe1e0ba8657a2b69fb20ca347fc9a.tar.lz
nixpkgs-8af72d55305fe1e0ba8657a2b69fb20ca347fc9a.tar.xz
nixpkgs-8af72d55305fe1e0ba8657a2b69fb20ca347fc9a.tar.zst
nixpkgs-8af72d55305fe1e0ba8657a2b69fb20ca347fc9a.zip
osu-lazer: osu-lazer: 2020.801.0 -> 2020.806.0
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/osu-lazer/bypass-tamper-detection.patch23
-rw-r--r--pkgs/games/osu-lazer/default.nix7
-rw-r--r--pkgs/games/osu-lazer/deps.nix4
3 files changed, 30 insertions, 4 deletions
diff --git a/pkgs/games/osu-lazer/bypass-tamper-detection.patch b/pkgs/games/osu-lazer/bypass-tamper-detection.patch
new file mode 100644
index 00000000000..576f83a96c5
--- /dev/null
+++ b/pkgs/games/osu-lazer/bypass-tamper-detection.patch
@@ -0,0 +1,23 @@
+diff --git a/osu.Game/OsuGameBase.cs b/osu.Game/OsuGameBase.cs

+index 98f60d52d..a27ce47ca 100644

+--- a/osu.Game/OsuGameBase.cs

++++ b/osu.Game/OsuGameBase.cs

+@@ -135,17 +135,7 @@ public OsuGameBase()

+         [BackgroundDependencyLoader]

+         private void load()

+         {

+-            try

+-            {

+-                using (var str = File.OpenRead(typeof(OsuGameBase).Assembly.Location))

+-                    VersionHash = str.ComputeMD5Hash();

+-            }

+-            catch

+-            {

+-                // special case for android builds, which can't read DLLs from a packed apk.

+-                // should eventually be handled in a better way.

+-                VersionHash = $"{Version}-{RuntimeInfo.OS}".ComputeMD5Hash();

+-            }

++            VersionHash = "253aa3a3a356a71295bf5b018cd4fda1";

+ 

+             Resources.AddStore(new DllResourceStore(OsuResources.ResourceAssembly));

+ 

diff --git a/pkgs/games/osu-lazer/default.nix b/pkgs/games/osu-lazer/default.nix
index 81b5e626c8e..d8197fae156 100644
--- a/pkgs/games/osu-lazer/default.nix
+++ b/pkgs/games/osu-lazer/default.nix
@@ -13,15 +13,18 @@ let
 
 in stdenv.mkDerivation rec {
   pname = "osu-lazer";
-  version = "2020.801.0";
+  version = "2020.806.0";
 
   src = fetchFromGitHub {
     owner = "ppy";
     repo = "osu";
     rev = version;
-    sha256 = "02klqc56fskc8r8p3z9d38r1i0rwgglfilb97pdqm1ph8jpr1c20";
+    sha256 = "BelmqcDnrGH84fTs6M0krwWz6SHn2hOm7y+PNEOOOZM=";
   };
 
+  patches = [ ./bypass-tamper-detection.patch ];
+  patchFlags = [ "--binary" "-p1" ];
+
   nativeBuildInputs = [ dotnet-sdk dotnetPackages.Nuget makeWrapper ];
 
   nugetDeps = linkFarmFromDrvs "${pname}-nuget-deps" (import ./deps.nix {
diff --git a/pkgs/games/osu-lazer/deps.nix b/pkgs/games/osu-lazer/deps.nix
index a7f2214fb5b..c29035e5724 100644
--- a/pkgs/games/osu-lazer/deps.nix
+++ b/pkgs/games/osu-lazer/deps.nix
@@ -586,8 +586,8 @@
   })
   (fetchNuGet {
     name = "ppy.osu.Framework";
-    version = "2020.730.1";
-    sha256 = "0hsrb01rhcpan00bwk9zxzgj1ghsgsmx36g7sd8rlygr3v5sfvmr";
+    version = "2020.806.0";
+    sha256 = "1d4aprz81xbhk5addl1n7jwj8xxny51s6nvpn37alld0x6n7k8nv";
   })
   (fetchNuGet {
     name = "ppy.osu.Framework.NativeLibs";