Update osu

This commit is contained in:
Natsu Kagami 2024-08-04 22:48:33 +02:00
parent 0b2e4feebb
commit 0887487c29
Signed by: nki
GPG key ID: 55A032EB38B49ADB

View file

@ -1,29 +1,28 @@
{ pkgs, lib, ... }: { pkgs, lib, ... }:
let let
osu-pkg = pkgs.unstable.osu-lazer-bin; # osu-pkg = pkgs.unstable.osu-lazer-bin;
# osu-pkg = with pkgs; with lib; osu-pkg = with pkgs; with lib;
# appimageTools.wrapType2 rec { appimageTools.wrapType2 rec {
# pname = "osu-lazer-bin"; pname = "osu-lazer-bin";
# version = "2024.312.1"; version = "2024.731.0";
# src = pkgs.fetchurl { src = 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-1dzgs1p3/pf4eCdKvQ9JxowN+oBPBNaZv5e6qHeFPEM="; hash = "sha256-6BxHRM7hC+v61BVqSFTzGpi7EyZQeo7kWua0CkrWiPM=";
# }; };
extraPkgs = pkgs: with pkgs; [ icu ];
# extraPkgs = pkgs: with pkgs; [ icu ]; extraInstallCommands =
let contents = appimageTools.extract { inherit pname version src; };
# extraInstallCommands = in
# let contents = appimageTools.extract { inherit pname version src; }; ''
# in mv -v $out/bin/${pname} $out/bin/osu\!
# '' install -m 444 -D ${contents}/osu\!.desktop -t $out/share/applications
# mv -v $out/bin/${pname}-${version} $out/bin/osu\! for i in 16 32 48 64 96 128 256 512 1024; do
# install -m 444 -D ${contents}/osu\!.desktop -t $out/share/applications install -D ${contents}/osu\!.png $out/share/icons/hicolor/''${i}x$i/apps/osu\!.png
# for i in 16 32 48 64 96 128 256 512 1024; do done
# install -D ${contents}/osu\!.png $out/share/icons/hicolor/''${i}x$i/apps/osu\!.png '';
# done };
# '';
# };
in in
{ {
home.packages = [ osu-pkg ]; home.packages = [ osu-pkg ];