overlay: Add osu-lazer-container

pull/30/head
Simon Bruder 2021-01-07 17:31:22 +01:00
parent a1efb5faa1
commit b586b7d2b5
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
2 changed files with 12 additions and 0 deletions

View File

@ -2,4 +2,5 @@ self: super: {
bwrap-helper = super.callPackage ./bwrap-helper { };
osu-lazer = super.callPackage ./osu-lazer { inherit (super) osu-lazer; };
osu-lazer-container = super.callPackage ./osu-lazer-container { };
}

View File

@ -0,0 +1,11 @@
{ bwrap-helper, osu-lazer, writeShellScriptBin }:
writeShellScriptBin "osu-lazer-container" ''
${bwrap-helper}/bin/bwrap-helper \
--audio \
--gui \
--network \
--passwd \
--x11 \
--bind $HOME/.local/share/osu $HOME/.local/share/osu \
${osu-lazer}/bin/osu!
''