diff options
author | Thiago Kenji Okada <thiagokokada@gmail.com> | 2023-01-06 18:26:03 +0000 |
---|---|---|
committer | Thiago Kenji Okada <thiagokokada@gmail.com> | 2023-01-06 18:26:27 +0000 |
commit | 30acf193c544ab3f076c5d612d68005d0baef4f4 (patch) | |
tree | 2e65ca3ecf36754262780a27913e0576993b07f3 /pkgs/games/osu-lazer/bin.nix | |
parent | f6e032322c387a5df519a9758cc1c848f871ff3f (diff) |
osu-lazer-bin: move it to osu-lazer directory
Diffstat (limited to 'pkgs/games/osu-lazer/bin.nix')
-rw-r--r-- | pkgs/games/osu-lazer/bin.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/games/osu-lazer/bin.nix b/pkgs/games/osu-lazer/bin.nix new file mode 100644 index 000000000000..6ab5c4470106 --- /dev/null +++ b/pkgs/games/osu-lazer/bin.nix @@ -0,0 +1,35 @@ +{ appimageTools, lib, fetchurl }: + +appimageTools.wrapType2 rec { + pname = "osu-lazer-bin"; + version = "2022.1228.0"; + + src = fetchurl { + url = "https://github.com/ppy/osu/releases/download/${version}/osu.AppImage"; + sha256 = "sha256-KDJ6HrnGyM6Brtf66C0r+hbSt/stppe+srChtNSoQ9g="; + }; + + 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 + ]; + maintainers = [ maintainers.delan ]; + platforms = [ "x86_64-linux" ]; + }; +} |