librewolf: Add showdex extension

This commit is contained in:
Donovan Glover 2024-09-01 18:59:30 -04:00
parent 2db228e009
commit ac84cee715
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 34 additions and 0 deletions

View File

@ -24,6 +24,7 @@ in
yomitan yomitan
redlib redlib
new-tab-identity new-tab-identity
showdex
]; ];
search = { search = {

33
packages/showdex.nix Normal file
View File

@ -0,0 +1,33 @@
{
lib,
stdenvNoCC,
fetchurl,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "showdex";
version = "1.2.4";
src = fetchurl {
url = "https://addons.mozilla.org/firefox/downloads/file/4329311/showdex-${finalAttrs.version}.xpi";
hash = "sha256-V2TbyhrB1mrkF7PdJrPdvN+umJXbEcbSKA2jfVPFvV8=";
};
dontUnpack = true;
installPhase = ''
runHook preInstall
install -Dm644 "$src" "$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/showdex@tize.io.xpi"
runHook postInstall
'';
meta = {
homepage = "https://github.com/doshidak/showdex";
description = "Pokémon Showdown extension that harnesses the power of parabolic calculus to strategically extract your opponents' Elo";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ donovanglover ];
platforms = lib.platforms.all;
};
})