firefox-patches/default.nix

39 lines
1016 B
Nix
Raw Normal View History

2017-09-20 20:39:03 +02:00
{ pkgs ? import <nixpkgs> { } }:
let
firefox = pkgs.firefox-unwrapped.override {
gtk3Support = true;
enableOfficialBranding = true;
privacySupport = true;
geolocationSupport = false;
pulseaudioSupport = false;
};
patched = firefox.overrideDerivation (base: {
patches = [
2017-10-17 23:11:44 +02:00
./allow-anonymous-user-style.patch
2017-09-20 20:39:03 +02:00
./disable-datasharing-infobar.patch
./disable-locationservice.patch
./disable-sponsored-tiles.patch
./disable-telemetry.patch
./disable-reader.patch
./disable-pocket.patch
./preferences.patch
];
postPatch = ''
sed -e '/browser\/extensions/d' \
-e '/browser\/features/d' \
-e '/pdfjs/d' \
-i browser/installer/package-manifest.in
: > browser/extensions/moz.build
'';
configureFlags = base.configureFlags ++ [
"--disable-dbus"
"--disable-gconf"
"--disable-eme"
];
});
in
pkgs.wrapFirefox patched { }