tangram/epiphany: preserve desktop files when patching

This commit is contained in:
Colin 2023-07-10 06:49:27 +00:00
parent 069f7b4616
commit 384428756d
2 changed files with 14 additions and 8 deletions

View File

@ -19,11 +19,13 @@
# - <https://gitlab.gnome.org/GNOME/gnome-builder/-/issues/1164>
# - <https://github.com/flatpak/flatpak/issues/3477>
# - <https://github.com/NixOS/nixpkgs/issues/197085>
#
# N.B.: this mode of patching the package means no .desktop file!
package = pkgs.writeShellScriptBin "epiphany" ''
WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1 ${pkgs.epiphany}/bin/epiphany
'';
package = pkgs.epiphany.overrideAttrs (upstream: {
preFixup = ''
gappsWrapperArgs+=(
--set WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS "1"
);
'' + (upstream.preFixup or "");
});
persist.private = [
".cache/epiphany"
".local/share/epiphany"

View File

@ -8,9 +8,13 @@
# XXX(2023/07/08): running on moby without this hack fails, with:
# - `bwrap: Can't make symlink at /var/run: File exists`
# see epiphany.nix for more info
package = pkgs.writeShellScriptBin "re.sonny.Tangram" ''
WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1 ${pkgs.tangram}/bin/re.sonny.Tangram
'';
package = pkgs.tangram.overrideAttrs (upstream: {
preFixup = ''
gappsWrapperArgs+=(
--set WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS "1"
);
'' + (upstream.preFixup or "");
});
persist.private = [
".cache/Tangram"
".local/share/Tangram"