2022-12-29 14:07:55 +00:00
|
|
|
{ appimageTools, lib, fetchurl }:
|
|
|
|
|
|
|
|
appimageTools.wrapType2 rec {
|
|
|
|
pname = "osu-lazer-bin";
|
2023-02-16 02:41:38 +00:00
|
|
|
version = "2023.207.0";
|
2022-12-29 14:07:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ppy/osu/releases/download/${version}/osu.AppImage";
|
2023-02-16 02:41:38 +00:00
|
|
|
sha256 = "sha256-xJQcqNV/Pr3gEGStczc3gv8AYrEKFsAo2g4WtA59fwk=";
|
2022-12-29 14:07:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extraPkgs = pkgs: with pkgs; [ icu ];
|
|
|
|
|
|
|
|
extraInstallCommands =
|
|
|
|
let contents = appimageTools.extract { inherit pname version src; };
|
|
|
|
in ''
|
|
|
|
mv -v $out/bin/${pname}-${version} $out/bin/osu\!
|
|
|
|
install -m 444 -D ${contents}/osu\!.desktop -t $out/share/applications
|
|
|
|
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
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Rhythm is just a *click* away (AppImage version for score submission and multiplayer)";
|
|
|
|
homepage = "https://osu.ppy.sh";
|
|
|
|
license = with licenses; [
|
|
|
|
mit
|
|
|
|
cc-by-nc-40
|
|
|
|
unfreeRedistributable # osu-framework contains libbass.so in repository
|
|
|
|
];
|
2023-01-06 18:26:44 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2022-12-29 14:07:55 +00:00
|
|
|
maintainers = [ maintainers.delan ];
|
2023-01-06 18:37:24 +00:00
|
|
|
mainProgram = "osu!";
|
2022-12-29 14:07:55 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|