Get latest osu
This commit is contained in:
parent
ef1c71b462
commit
adf3aeadfa
47
home/osu.nix
47
home/osu.nix
|
@ -1,31 +1,36 @@
|
||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
osu-pkg = pkgs.unstable.osu-lazer-bin;
|
osu-pkg =
|
||||||
# with pkgs; with lib;
|
# pkgs.unstable.osu-lazer-bin.overrideAttrs (attrs: rec {
|
||||||
# appimageTools.wrapType2 rec {
|
# version = "2023.1130.0";
|
||||||
# pname = "osu-lazer-bin";
|
# src = pkgs.fetchurl {
|
||||||
# version = "2023.914.0";
|
|
||||||
|
|
||||||
# src = fetchurl {
|
|
||||||
# url = "https://github.com/ppy/osu/releases/download/${version}/osu.AppImage";
|
# url = "https://github.com/ppy/osu/releases/download/${version}/osu.AppImage";
|
||||||
# # sha256 = "sha256-edu93pvTEM5/s0kW55U1xfYGDl0eUpGXypvuYIwsM3w=";
|
# hash = "sha256-dQuyKjCZaIl3uaI81qRMt5NzBxfmyROVbJrVAqzuZxg=";
|
||||||
# hash = lib.fakeHash;
|
|
||||||
# };
|
# };
|
||||||
|
# });
|
||||||
|
with pkgs; with lib;
|
||||||
|
appimageTools.wrapType2 rec {
|
||||||
|
pname = "osu-lazer-bin";
|
||||||
|
version = "2023.1130.0";
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "https://github.com/ppy/osu/releases/download/${version}/osu.AppImage";
|
||||||
|
hash = "sha256-dQuyKjCZaIl3uaI81qRMt5NzBxfmyROVbJrVAqzuZxg=";
|
||||||
|
};
|
||||||
|
|
||||||
# extraPkgs = pkgs: with pkgs; [ icu ];
|
extraPkgs = pkgs: with pkgs; [ icu ];
|
||||||
|
|
||||||
# extraInstallCommands =
|
extraInstallCommands =
|
||||||
# let contents = appimageTools.extract { inherit pname version src; };
|
let contents = appimageTools.extract { inherit pname version src; };
|
||||||
# in
|
in
|
||||||
# ''
|
''
|
||||||
# mv -v $out/bin/${pname}-${version} $out/bin/osu\!
|
mv -v $out/bin/${pname}-${version} $out/bin/osu\!
|
||||||
# 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
|
||||||
# '';
|
'';
|
||||||
# };
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.packages = [ osu-pkg ];
|
home.packages = [ osu-pkg ];
|
||||||
|
|
Loading…
Reference in a new issue