programs: frozen-bubble: persist data and sandbox with bwrap
This commit is contained in:
parent
cd1d22e7b9
commit
9a8d8a20bd
|
@ -27,6 +27,7 @@
|
||||||
./flare-signal.nix
|
./flare-signal.nix
|
||||||
./fontconfig.nix
|
./fontconfig.nix
|
||||||
./fractal.nix
|
./fractal.nix
|
||||||
|
./frozen-bubble.nix
|
||||||
./fwupd.nix
|
./fwupd.nix
|
||||||
./g4music.nix
|
./g4music.nix
|
||||||
./gajim.nix
|
./gajim.nix
|
||||||
|
|
18
hosts/common/programs/frozen-bubble.nix
Normal file
18
hosts/common/programs/frozen-bubble.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# source code: <https://github.com/kthakore/frozen-bubble>
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
sane.programs.frozen-bubble = {
|
||||||
|
sandbox.method = "bwrap";
|
||||||
|
sandbox.wrapperType = "wrappedDerivation";
|
||||||
|
packageUnwrapped = pkgs.frozen-bubble.overrideAttrs (upstream: {
|
||||||
|
# patch so it stores its dot-files not in root ~.
|
||||||
|
postPatch = (upstream.postPatch or "") + ''
|
||||||
|
substituteInPlace lib/Games/FrozenBubble/Stuff.pm \
|
||||||
|
--replace-fail '$FBHOME = "$ENV{HOME}/.frozen-bubble"' '$FBHOME = "$ENV{HOME}/.local/share/frozen-bubble"'
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
persist.byStore.plaintext = [
|
||||||
|
".local/share/frozen-bubble" # preferences, high scores
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user