19 lines
672 B
Nix
19 lines
672 B
Nix
|
# 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
|
||
|
];
|
||
|
};
|
||
|
}
|