chore: Clean up extension packages

This commit is contained in:
Donovan Glover 2024-08-30 16:42:22 -04:00
parent 0b44a17ca9
commit 44fecbf9e4
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 24 additions and 3 deletions

View File

@ -13,14 +13,21 @@ stdenvNoCC.mkDerivation (finalAttrs: {
hash = "sha256-j6A/CQ56hKOLgaDcmJBVE9lThn8js4xDkj88wqIzBE8="; hash = "sha256-j6A/CQ56hKOLgaDcmJBVE9lThn8js4xDkj88wqIzBE8=";
}; };
buildCommand = '' dontUnpack = true;
installPhase = ''
runHook preInstall
install -Dm644 "$src" "$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{5003e502-f361-4bf6-b09e-41a844d36d33}.xpi" install -Dm644 "$src" "$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{5003e502-f361-4bf6-b09e-41a844d36d33}.xpi"
runHook postInstall
''; '';
meta = { meta = {
homepage = "https://addons.mozilla.org/en-US/firefox/addon/redlib/"; homepage = "https://addons.mozilla.org/en-US/firefox/addon/redlib/";
description = "Redirect to Redlib with Farside"; description = "Redirect to Redlib with Farside";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = with lib.maintainers; [ donovanglover ];
platforms = lib.platforms.all; platforms = lib.platforms.all;
}; };
}) })

View File

@ -13,14 +13,21 @@ stdenvNoCC.mkDerivation (finalAttrs: {
hash = "sha256-HbnGdqB9FB+NNtu8JPnj1kpswjQNv8bISLxDlfls+xQ="; hash = "sha256-HbnGdqB9FB+NNtu8JPnj1kpswjQNv8bISLxDlfls+xQ=";
}; };
buildCommand = '' dontUnpack = true;
installPhase = ''
runHook preInstall
install -Dm644 "$src" "$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
''; '';
meta = { meta = {
homepage = "https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/"; homepage = "https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/";
description = "Efficient wide-spectrum content blocker"; description = "Efficient wide-spectrum content blocker";
license = lib.licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ donovanglover ];
platforms = lib.platforms.all; platforms = lib.platforms.all;
}; };
}) })

View File

@ -13,14 +13,21 @@ stdenvNoCC.mkDerivation (finalAttrs: {
hash = "sha256-Ki6AbZeaW28tAYZWTIOU2HLq/9zlGyrms3z3LANsc5U="; hash = "sha256-Ki6AbZeaW28tAYZWTIOU2HLq/9zlGyrms3z3LANsc5U=";
}; };
buildCommand = '' dontUnpack = true;
installPhase = ''
runHook preInstall
install -Dm644 "$src" "$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{6b733b82-9261-47ee-a595-2dda294a4d08}.xpi" install -Dm644 "$src" "$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{6b733b82-9261-47ee-a595-2dda294a4d08}.xpi"
runHook postInstall
''; '';
meta = { meta = {
homepage = "https://addons.mozilla.org/en-US/firefox/addon/yomitan/"; homepage = "https://addons.mozilla.org/en-US/firefox/addon/yomitan/";
description = "Japanese dictionary with Anki integration"; description = "Japanese dictionary with Anki integration";
license = lib.licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ donovanglover ];
platforms = lib.platforms.all; platforms = lib.platforms.all;
}; };
}) })