tangram/epiphany: preserve desktop files when patching
This commit is contained in:
parent
069f7b4616
commit
384428756d
|
@ -19,11 +19,13 @@
|
||||||
# - <https://gitlab.gnome.org/GNOME/gnome-builder/-/issues/1164>
|
# - <https://gitlab.gnome.org/GNOME/gnome-builder/-/issues/1164>
|
||||||
# - <https://github.com/flatpak/flatpak/issues/3477>
|
# - <https://github.com/flatpak/flatpak/issues/3477>
|
||||||
# - <https://github.com/NixOS/nixpkgs/issues/197085>
|
# - <https://github.com/NixOS/nixpkgs/issues/197085>
|
||||||
#
|
package = pkgs.epiphany.overrideAttrs (upstream: {
|
||||||
# N.B.: this mode of patching the package means no .desktop file!
|
preFixup = ''
|
||||||
package = pkgs.writeShellScriptBin "epiphany" ''
|
gappsWrapperArgs+=(
|
||||||
WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1 ${pkgs.epiphany}/bin/epiphany
|
--set WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS "1"
|
||||||
'';
|
);
|
||||||
|
'' + (upstream.preFixup or "");
|
||||||
|
});
|
||||||
persist.private = [
|
persist.private = [
|
||||||
".cache/epiphany"
|
".cache/epiphany"
|
||||||
".local/share/epiphany"
|
".local/share/epiphany"
|
||||||
|
|
|
@ -8,9 +8,13 @@
|
||||||
# XXX(2023/07/08): running on moby without this hack fails, with:
|
# XXX(2023/07/08): running on moby without this hack fails, with:
|
||||||
# - `bwrap: Can't make symlink at /var/run: File exists`
|
# - `bwrap: Can't make symlink at /var/run: File exists`
|
||||||
# see epiphany.nix for more info
|
# see epiphany.nix for more info
|
||||||
package = pkgs.writeShellScriptBin "re.sonny.Tangram" ''
|
package = pkgs.tangram.overrideAttrs (upstream: {
|
||||||
WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1 ${pkgs.tangram}/bin/re.sonny.Tangram
|
preFixup = ''
|
||||||
'';
|
gappsWrapperArgs+=(
|
||||||
|
--set WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS "1"
|
||||||
|
);
|
||||||
|
'' + (upstream.preFixup or "");
|
||||||
|
});
|
||||||
persist.private = [
|
persist.private = [
|
||||||
".cache/Tangram"
|
".cache/Tangram"
|
||||||
".local/share/Tangram"
|
".local/share/Tangram"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user