From cce40e99d064403fc83248ae284f2b7383395fb3 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Wed, 13 Dec 2023 19:15:55 -0500 Subject: [PATCH] fix(firefox): make FFZ update work again --- home/firefox/addons/default.nix | 25 +++++++++++-------------- updateSha.sh | 3 +++ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/home/firefox/addons/default.nix b/home/firefox/addons/default.nix index aa9f0d6..e5aa2f2 100644 --- a/home/firefox/addons/default.nix +++ b/home/firefox/addons/default.nix @@ -39,20 +39,17 @@ in // { inherit buildFirefoxXpiAddon; - seventv = let + seventv = buildFirefoxXpiAddon { + pname = "frankerfacez"; version = "4.0"; - in - buildFirefoxXpiAddon { - pname = "frankerfacez"; - inherit version; - addonId = "frankerfacez@frankerfacez.com"; - url = "https://cdn.frankerfacez.com/script/frankerfacez-${version}-an+fx.xpi"; - sha256 = "sha256-U/yAra2c+RlGSaQtHfBz9XYsoDaJ67gmPJBsFrpqoE8="; - meta = with lib; { - homepage = "https://www.frankerfacez.com/"; - description = "The Twitch Enhancement Suite. Get custom emotes and tons of new features you'll never want to go without."; - license = licenses.asl20; - platforms = platforms.all; - }; + addonId = "frankerfacez@frankerfacez.com"; + url = "https://cdn.frankerfacez.com/script/frankerfacez-4.0-an+fx.xpi"; + sha256 = "sha256-U/yAra2c+RlGSaQtHfBz9XYsoDaJ67gmPJBsFrpqoE8="; + meta = with lib; { + homepage = "https://www.frankerfacez.com/"; + description = "The Twitch Enhancement Suite. Get custom emotes and tons of new features you'll never want to go without."; + license = licenses.asl20; + platforms = platforms.all; }; + }; } diff --git a/updateSha.sh b/updateSha.sh index a46a2c1..c643e4b 100755 --- a/updateSha.sh +++ b/updateSha.sh @@ -16,6 +16,9 @@ parseFetchurl() { sed -i "s,url = .*,url = \"$URL\";," "$FILE" sed -i "s,hash = .*,hash = \"$HASH\";," "$FILE" + + # For Firefox addons + sed -i "s,sha256 = .*,sha256 = \"$HASH\";," "$FILE" } # TODO