Simon Bruder
f945341668
This applies the REUSE specification to the repository, so the licensing information can be tracked for every file individually.
19 lines
502 B
Nix
19 lines
502 B
Nix
# SPDX-FileCopyrightText: 2021 Simon Bruder <simon@sbruder.de>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
{ bwrap-helper, osu-lazer, writeShellScriptBin }:
|
|
writeShellScriptBin "osu-lazer-sandbox" ''
|
|
state_dir="''${XDG_DATA_HOME:-$HOME/.local/share}/osu"
|
|
|
|
mkdir -p "$state_dir"
|
|
${bwrap-helper}/bin/bwrap-helper \
|
|
--audio \
|
|
--gui \
|
|
--network \
|
|
--passwd \
|
|
--x11 \
|
|
--bind "$state_dir" "$state_dir" \
|
|
${osu-lazer}/bin/osu!
|
|
''
|