26 lines
933 B
Nix
26 lines
933 B
Nix
|
{ prev, final, ... }:
|
||
|
{
|
||
|
# firefox-unwrapped = (prev.firefox-unwrapped.overrideAttrs (old: {
|
||
|
# patches = (old.patches or []) ++ [ ../patches/firefox_search_engines.patch ];
|
||
|
# })).override {
|
||
|
# stdenv = prev.ccacheStdenv;
|
||
|
# overrideCC = stdenv: compiler: let
|
||
|
# env = prev.ccacheStdenv.override { inherit stdenv; };
|
||
|
# in prev.overrideCC env compiler;
|
||
|
# };
|
||
|
firefox = prev.firefox.overrideAttrs (old: {
|
||
|
nativeBuildInputs = (old.nativeBuildInputs or []) ++ (with prev; [ zip unzip gnused ] );
|
||
|
buildCommand = ''
|
||
|
export buildRoot="$(pwd)"
|
||
|
'' + old.buildCommand + ''
|
||
|
cd $buildRoot
|
||
|
unzip $out/lib/firefox/browser/omni.ja -d patched_omni || true
|
||
|
rm $out/lib/firefox/browser/omni.ja
|
||
|
cd patched_omni
|
||
|
sed -i 's/"enterprise_only"\s*:\s*true,//' modules/policies/schema.sys.mjs
|
||
|
zip -0DXqr $out/lib/firefox/browser/omni.ja * # potentially qr9XD
|
||
|
cd $out
|
||
|
'';
|
||
|
});
|
||
|
}
|