osu-lazer-bin: disable auto updates

This commit is contained in:
Gutyina Gergő 2024-09-07 13:12:20 +02:00
parent e704015e46
commit 9957d3ae64
No known key found for this signature in database

View File

@ -3,6 +3,7 @@
, fetchurl , fetchurl
, fetchzip , fetchzip
, appimageTools , appimageTools
, makeWrapper
}: }:
let let
@ -64,7 +65,10 @@ else appimageTools.wrapType2 {
contents = appimageTools.extract { inherit pname version src; }; contents = appimageTools.extract { inherit pname version src; };
in in
'' ''
. ${makeWrapper}/nix-support/setup-hook
mv -v $out/bin/${pname} $out/bin/osu\! mv -v $out/bin/${pname} $out/bin/osu\!
wrapProgram $out/bin/osu\! \
--set OSU_EXTERNAL_UPDATE_PROVIDER 1
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