osu-lazer: 2020.1225.0 -> 2021.129.0

This commit is contained in:
oxalica 2021-02-02 02:13:12 +08:00
parent 26187c65b6
commit 50707b3130
No known key found for this signature in database
GPG Key ID: CED392DE0C483D00
5 changed files with 401 additions and 592 deletions

View File

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, fetchurl, makeWrapper, makeDesktopItem, linkFarmFromDrvs
, dotnet-sdk, dotnet-netcore, dotnetPackages
, dotnetCorePackages, dotnetPackages, cacert
, ffmpeg_4, alsaLib, SDL2, lttng-ust, numactl, alsaPlugins
}:
@ -8,24 +8,31 @@ let
ffmpeg_4 alsaLib SDL2 lttng-ust numactl
];
dotnet-sdk = dotnetCorePackages.sdk_5_0;
dotnet-net = dotnetCorePackages.net_5_0;
# https://docs.microsoft.com/en-us/dotnet/core/rid-catalog#using-rids
runtimeId = "linux-x64";
in stdenv.mkDerivation rec {
pname = "osu-lazer";
version = "2020.1225.0";
version = "2021.129.0";
src = fetchFromGitHub {
owner = "ppy";
repo = "osu";
rev = version;
sha256 = "BISczC4xYcF6m5l3ye/bdZxs/aK0Jz6sFVFOgNDo0v0=";
sha256 = "AVx842Zq3mq59VCPdF94mcx5uOr70SmkV/tMNkNyMSY=";
};
patches = [ ./bypass-tamper-detection.patch ];
patchFlags = [ "--binary" "-p1" ];
nativeBuildInputs = [ dotnet-sdk dotnetPackages.Nuget makeWrapper ];
nativeBuildInputs = [
dotnet-sdk dotnetPackages.Nuget makeWrapper
# FIXME: Without `cacert`, we will suffer from https://github.com/NuGet/Announcements/issues/49
cacert
];
nugetDeps = linkFarmFromDrvs "${pname}-nuget-deps" (import ./deps.nix {
fetchNuGet = { name, version, sha256 }: fetchurl {
@ -75,7 +82,7 @@ in stdenv.mkDerivation rec {
--output $out/lib/osu
makeWrapper $out/lib/osu/osu\! $out/bin/osu\! \
--set DOTNET_ROOT "${dotnet-netcore}" \
--set DOTNET_ROOT "${dotnet-net}" \
--suffix LD_LIBRARY_PATH : "${lib.makeLibraryPath runtimeDeps}"
for i in 16 32 48 64 96 128 256 512 1024; do
install -D ./assets/lazer.png $out/share/icons/hicolor/''${i}x$i/apps/osu\!.png

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +1,9 @@
{
"runtimeOptions": {
"tfm": "netcoreapp3.1",
"tfm": "net5.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "3.1.0"
"version": "5.0.0"
}
}
}

View File

@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts dotnet-sdk_3
#!nix-shell -i bash -p curl jq common-updater-scripts dotnet-sdk_5
set -eo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"

View File

@ -24040,10 +24040,7 @@ in
osmium-tool = callPackage ../applications/misc/osmium-tool { };
osu-lazer = callPackage ../games/osu-lazer {
dotnet-sdk = dotnetCorePackages.sdk_3_1;
dotnet-netcore = dotnetCorePackages.netcore_3_1;
};
osu-lazer = callPackage ../games/osu-lazer { };
owamp = callPackage ../applications/networking/owamp { };