ublock-origin: drop dns modifications

Not necessary since this has now been fixed upstream.
This commit is contained in:
Donovan Glover 2024-10-13 02:43:58 -04:00
parent a48a141203
commit 2e9b8619ec
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -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