From 70c8d3f27a48523975376927679d9b0b56955ab5 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 31 Aug 2024 00:18:10 -0400 Subject: [PATCH] librewolf: Remove unnecessary ublock-origin package Not needed and seems to actually break things since it's included by default in LibreWolf. --- home/librewolf.nix | 1 - packages/ublock-origin.nix | 52 -------------------------------------- 2 files changed, 53 deletions(-) delete mode 100644 packages/ublock-origin.nix diff --git a/home/librewolf.nix b/home/librewolf.nix index 2c117fa5..16124ded 100644 --- a/home/librewolf.nix +++ b/home/librewolf.nix @@ -20,7 +20,6 @@ in profiles.default = { extensions = with nix-config.packages.${pkgs.system}; [ - ublock-origin yomitan redlib new-tab-identity diff --git a/packages/ublock-origin.nix b/packages/ublock-origin.nix deleted file mode 100644 index c5a45ad8..00000000 --- a/packages/ublock-origin.nix +++ /dev/null @@ -1,52 +0,0 @@ -{ - lib, - stdenvNoCC, - fetchurl, - unzip, - zip, -}: - -stdenvNoCC.mkDerivation (finalAttrs: { - pname = "ublock-origin"; - version = "1.59.0"; - - src = fetchurl { - url = "https://addons.mozilla.org/firefox/downloads/file/4328681/ublock_origin-${finalAttrs.version}.xpi"; - hash = "sha256-HbnGdqB9FB+NNtu8JPnj1kpswjQNv8bISLxDlfls+xQ="; - }; - - 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 - - install -Dm644 ublock-origin.xpi "$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/uBlock0@raymondhill.net.xpi" - - runHook postInstall - ''; - - meta = { - homepage = "https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/"; - description = "Efficient wide-spectrum content blocker"; - license = lib.licenses.gpl3Plus; - maintainers = with lib.maintainers; [ donovanglover ]; - platforms = lib.platforms.all; - }; -})