overlays/osu-lazer: use custom launch script
This commit is contained in:
parent
8aa10ce4ed
commit
1f1c4ef498
1 changed files with 26 additions and 2 deletions
|
|
@ -1,9 +1,10 @@
|
||||||
self: super:
|
self: super:
|
||||||
let
|
let
|
||||||
version = "2021.1108.0";
|
version = "2021.1108.0";
|
||||||
in {
|
in rec {
|
||||||
osu-lazer = super.osu-lazer.overrideAttrs(old: {
|
osu-lazer-unwrapped = super.osu-lazer.overrideAttrs(old: {
|
||||||
inherit version;
|
inherit version;
|
||||||
|
pname = "osu-lazer-unwrapped";
|
||||||
|
|
||||||
src = super.fetchFromGitHub {
|
src = super.fetchFromGitHub {
|
||||||
owner = "ppy";
|
owner = "ppy";
|
||||||
|
|
@ -25,4 +26,27 @@ in {
|
||||||
patches = [ ./patches/bypass-tamper-detection.patch ];
|
patches = [ ./patches/bypass-tamper-detection.patch ];
|
||||||
patchFlags = [ "--binary" "-p1" ];
|
patchFlags = [ "--binary" "-p1" ];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
osu-lazer =
|
||||||
|
let
|
||||||
|
startScript = super.writeShellScript "osu-lazer" ''
|
||||||
|
DRI_PRIME=1 vblank_mode=0 PIPEWIRE_LATENCY=64/48000 ${super.pipewire}/bin/pw-jack ${osu-lazer-unwrapped.outPath}/bin/osu\\!
|
||||||
|
'';
|
||||||
|
desktopEntry = super.makeDesktopItem {
|
||||||
|
desktopName = "osu!";
|
||||||
|
name = "osu";
|
||||||
|
exec = startScript.outPath;
|
||||||
|
icon = "osu!";
|
||||||
|
comment = osu-lazer-unwrapped.meta.description;
|
||||||
|
type = "Application";
|
||||||
|
categories = "Game;";
|
||||||
|
};
|
||||||
|
in super.stdenvNoCC.mkDerivation {
|
||||||
|
inherit version;
|
||||||
|
pname = "osu-lazer";
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
cp ${desktopEntry}/share/applications $out/share
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue