overlay: Add osu-lazer-container

This commit is contained in:
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 { }; bwrap-helper = super.callPackage ./bwrap-helper { };
osu-lazer = super.callPackage ./osu-lazer { inherit (super) osu-lazer; }; 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!
''