17 lines
585 B
Nix
17 lines
585 B
Nix
{ prev, final, ... }:
|
|
{
|
|
firefox = prev.firefox.overrideAttrs (old: {
|
|
nativeBuildInputs = (old.nativeBuildInputs or []) ++ (with prev; [ zip unzip gnused ] );
|
|
buildCommand = ''
|
|
export buildRoot="$(pwd)"
|
|
'' + old.buildCommand + ''
|
|
pushd $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
|
|
popd
|
|
'';
|
|
});
|
|
}
|