mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 00:03:55 +01:00
ublock-origin: drop dns modifications
Not necessary since this has now been fixed upstream.
This commit is contained in:
parent
a48a141203
commit
2e9b8619ec
@ -2,8 +2,6 @@
|
|||||||
lib,
|
lib,
|
||||||
stdenvNoCC,
|
stdenvNoCC,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
unzip,
|
|
||||||
zip,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
@ -17,23 +15,6 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
|||||||
|
|
||||||
dontUnpack = true;
|
dontUnpack = true;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
unzip
|
|
||||||
zip
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
unzip "$src"
|
|
||||||
|
|
||||||
substituteInPlace ./js/vapi-background-ext.js \
|
|
||||||
--replace-fail "browser.dns instanceof Object" "false"
|
|
||||||
|
|
||||||
substituteInPlace ./js/background.js \
|
|
||||||
--replace-fail "cnameUncloakEnabled: true" "cnameUncloakEnabled: false"
|
|
||||||
|
|
||||||
zip -x env-vars -r ublock-origin.xpi *
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user