mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-25 01:33:17 +01:00
packages(ublock-origin): Document attempt at changing settings
This seemed to work to an extent but resulted in some weirdness with the uBlock Origin from LibreWolf and the uBlock Origin from this package. The actual setting didn't change even though it was disabled in the interface. Re-enabling the checkbox and toggling it didn't change anything either.
This commit is contained in:
parent
42ea4eef27
commit
c2bc18d696
@ -2,6 +2,8 @@
|
|||||||
lib,
|
lib,
|
||||||
stdenvNoCC,
|
stdenvNoCC,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
|
unzip,
|
||||||
|
zip,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
@ -15,10 +17,27 @@ 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
|
||||||
|
|
||||||
install -Dm644 "$src" "$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/uBlock0@raymondhill.net.xpi"
|
install -Dm644 ublock-origin.xpi "$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/uBlock0@raymondhill.net.xpi"
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user