1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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
, fetchzip
, appimageTools
, makeWrapper
}:
let
@ -64,7 +65,10 @@ else appimageTools.wrapType2 {
contents = appimageTools.extract { inherit pname version src; };
in
''
. ${makeWrapper}/nix-support/setup-hook
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
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