mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-11 15:34:05 +00:00
osu-lazer{,-bin}: 2024.1115.3 -> 2024.1208.0 (#363501)
This commit is contained in:
commit
822b53d1a1
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenvNoCC,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
fetchzip,
|
fetchzip,
|
||||||
appimageTools,
|
appimageTools,
|
||||||
@ -10,26 +10,26 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
pname = "osu-lazer-bin";
|
pname = "osu-lazer-bin";
|
||||||
version = "2024.1115.3";
|
version = "2024.1208.0";
|
||||||
|
|
||||||
src =
|
src =
|
||||||
{
|
{
|
||||||
aarch64-darwin = fetchzip {
|
aarch64-darwin = fetchzip {
|
||||||
url = "https://github.com/ppy/osu/releases/download/${version}/osu.app.Apple.Silicon.zip";
|
url = "https://github.com/ppy/osu/releases/download/${version}/osu.app.Apple.Silicon.zip";
|
||||||
hash = "sha256-dw+bfuei0Wbk3UNVKZRahZxxsJObTyzJOYEMXYJyUNE=";
|
hash = "sha256-OgXKJ09OMqeD2ZdNBbEluEyR0bbBllprSAHaIXCtLSA=";
|
||||||
stripRoot = false;
|
stripRoot = false;
|
||||||
};
|
};
|
||||||
x86_64-darwin = fetchzip {
|
x86_64-darwin = fetchzip {
|
||||||
url = "https://github.com/ppy/osu/releases/download/${version}/osu.app.Intel.zip";
|
url = "https://github.com/ppy/osu/releases/download/${version}/osu.app.Intel.zip";
|
||||||
hash = "sha256-EQA2HhoN52VdZsvq8IyocV4zRupVRfdyPpXF3nxZ8rM=";
|
hash = "sha256-3W6F2ThYTOVKa9/zTA/6X0uMoPy1SYulIYfYw+D7FR8=";
|
||||||
stripRoot = false;
|
stripRoot = false;
|
||||||
};
|
};
|
||||||
x86_64-linux = fetchurl {
|
x86_64-linux = fetchurl {
|
||||||
url = "https://github.com/ppy/osu/releases/download/${version}/osu.AppImage";
|
url = "https://github.com/ppy/osu/releases/download/${version}/osu.AppImage";
|
||||||
hash = "sha256-kwZHy0FfOUFIWvyOj0ghlQz05U+Lnzl5TgC4T6bhm7o=";
|
hash = "sha256-gRUr7jf0+Xbfz8FurPk/o7F67TYisdNySNzVWEMb1es=";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
.${stdenv.system} or (throw "osu-lazer-bin: ${stdenv.system} is unsupported.");
|
.${stdenvNoCC.system} or (throw "osu-lazer-bin: ${stdenvNoCC.system} is unsupported.");
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Rhythm is just a *click* away (AppImage version for score submission and multiplayer, and binary distribution for Darwin systems)";
|
description = "Rhythm is just a *click* away (AppImage version for score submission and multiplayer, and binary distribution for Darwin systems)";
|
||||||
@ -55,8 +55,8 @@ let
|
|||||||
|
|
||||||
passthru.updateScript = ./update.sh;
|
passthru.updateScript = ./update.sh;
|
||||||
in
|
in
|
||||||
if stdenv.hostPlatform.isDarwin then
|
if stdenvNoCC.isDarwin then
|
||||||
stdenv.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
inherit
|
inherit
|
||||||
pname
|
pname
|
||||||
version
|
version
|
||||||
@ -99,7 +99,7 @@ else
|
|||||||
|
|
||||||
install -m 444 -D ${contents}/osu!.desktop -t $out/share/applications
|
install -m 444 -D ${contents}/osu!.desktop -t $out/share/applications
|
||||||
for i in 16 32 48 64 96 128 256 512 1024; do
|
for i in 16 32 48 64 96 128 256 512 1024; do
|
||||||
install -D ${contents}/osu!.png $out/share/icons/hicolor/''${i}x$i/apps/osu!.png
|
install -D ${contents}/osu.png $out/share/icons/hicolor/''${i}x$i/apps/osu.png
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
1894
pkgs/by-name/os/osu-lazer/deps.nix
generated
1894
pkgs/by-name/os/osu-lazer/deps.nix
generated
File diff suppressed because it is too large
Load Diff
@ -21,13 +21,13 @@
|
|||||||
|
|
||||||
buildDotnetModule rec {
|
buildDotnetModule rec {
|
||||||
pname = "osu-lazer";
|
pname = "osu-lazer";
|
||||||
version = "2024.1115.3";
|
version = "2024.1208.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ppy";
|
owner = "ppy";
|
||||||
repo = "osu";
|
repo = "osu";
|
||||||
rev = version;
|
tag = version;
|
||||||
hash = "sha256-AZN/zgHV6ydImOd1zUjYqXJqq5o0XGnvNvTTL/mIrHg=";
|
hash = "sha256-cMPVtzoTxIUVZNNAqF+H0873ZsXGluFEXwNDp7zOq8c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
projectFile = "osu.Desktop/osu.Desktop.csproj";
|
projectFile = "osu.Desktop/osu.Desktop.csproj";
|
||||||
@ -74,7 +74,7 @@ buildDotnetModule rec {
|
|||||||
--set OSU_EXTERNAL_UPDATE_PROVIDER 1
|
--set OSU_EXTERNAL_UPDATE_PROVIDER 1
|
||||||
|
|
||||||
for i in 16 32 48 64 96 128 256 512 1024; do
|
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
|
install -D ./assets/lazer.png $out/share/icons/hicolor/''${i}x$i/apps/osu.png
|
||||||
done
|
done
|
||||||
|
|
||||||
ln -sft $out/lib/${pname} ${SDL2}/lib/libSDL2${stdenvNoCC.hostPlatform.extensions.sharedLibrary}
|
ln -sft $out/lib/${pname} ${SDL2}/lib/libSDL2${stdenvNoCC.hostPlatform.extensions.sharedLibrary}
|
||||||
@ -88,7 +88,7 @@ buildDotnetModule rec {
|
|||||||
desktopName = "osu!";
|
desktopName = "osu!";
|
||||||
name = "osu";
|
name = "osu";
|
||||||
exec = "osu!";
|
exec = "osu!";
|
||||||
icon = "osu!";
|
icon = "osu";
|
||||||
comment = "Rhythm is just a *click* away (no score submission or multiplayer, see osu-lazer-bin)";
|
comment = "Rhythm is just a *click* away (no score submission or multiplayer, see osu-lazer-bin)";
|
||||||
type = "Application";
|
type = "Application";
|
||||||
categories = [ "Game" ];
|
categories = [ "Game" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user