ublock-origin: 1.59.0 -> 1.60.0

Also using the GitHub URL so updates work properly.
This commit is contained in:
Donovan Glover 2024-10-13 02:42:47 -04:00
parent 1fc96be25c
commit a48a141203
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -8,11 +8,11 @@
stdenvNoCC.mkDerivation (finalAttrs: { stdenvNoCC.mkDerivation (finalAttrs: {
pname = "ublock-origin"; pname = "ublock-origin";
version = "1.59.0"; version = "1.60.0";
src = fetchurl { src = fetchurl {
url = "https://addons.mozilla.org/firefox/downloads/file/4328681/ublock_origin-${finalAttrs.version}.xpi"; url = "https://github.com/gorhill/uBlock/releases/download/${finalAttrs.version}/uBlock0_${finalAttrs.version}.firefox.signed.xpi";
hash = "sha256-HbnGdqB9FB+NNtu8JPnj1kpswjQNv8bISLxDlfls+xQ="; hash = "sha256-4s2psqGwp/bl7w2p+H8o31L4VgWHui5RowAxIc+4FgA=";
}; };
dontUnpack = true; dontUnpack = true;
@ -37,7 +37,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
install -Dm644 ublock-origin.xpi "$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/uBlock0@raymondhill.net.xpi" install -Dm644 "$src" "$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/uBlock0@raymondhill.net.xpi"
runHook postInstall runHook postInstall
''; '';