mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-21 15:53:32 +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,
|
||||
stdenvNoCC,
|
||||
fetchurl,
|
||||
unzip,
|
||||
zip,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
@ -17,23 +15,6 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
|
||||
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 = ''
|
||||
runHook preInstall
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user