overlays: patch firefox with .diff file from aur/firefox-xdg

This commit is contained in:
Guanran Wang 2023-10-08 11:15:59 +08:00
parent 89f91afa4e
commit aed681b24d
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -0,0 +1,24 @@
{ ... }:
{
nixpkgs = {
overlays = [
(final: prev:
{
firefox-unwrapped = prev.firefox-unwrapped.overrideAttrs (old: {
# Firefox but with .mozilla moved to .config/mozilla
# .patch file from aur/firefox-xdg
# dont actually use this, =.=
patches = (old.patches or []) ++ [
(prev.fetchpatch {
url = "https://aur.archlinux.org/cgit/aur.git/plain/firefox-xdg-support.diff?h=firefox-xdg";
hash = "sha256-9LibQ+dIZ7MeTcuKEuJ42AW8m7Q7mVBwT4KyGeJTJ88=";
})
];
});
}
)
];
};
}