aboutsummaryrefslogtreecommitdiffstats
path: root/modules/web/chromium/extensions/aria2-explorer.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/web/chromium/extensions/aria2-explorer.nix')
-rw-r--r--modules/web/chromium/extensions/aria2-explorer.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/modules/web/chromium/extensions/aria2-explorer.nix b/modules/web/chromium/extensions/aria2-explorer.nix
new file mode 100644
index 0000000..1f6e5b1
--- /dev/null
+++ b/modules/web/chromium/extensions/aria2-explorer.nix
@@ -0,0 +1,33 @@
+{
+ lib,
+ pkgs,
+ extLib,
+}:
+let
+ pname = "aria2-explorer";
+ owner = "alexhua";
+ repo = "Aria2-Explorer";
+ version = "2.8.2";
+ checkedVersion = extLib.checkExtensionVersion {
+ inherit
+ pname
+ owner
+ repo
+ version
+ ;
+ tagPrefix = "v";
+ urlTemplate = "https://github.com/${owner}/${repo}/releases/download/v<version>/A2E-v<version>.crx";
+ };
+in
+{
+ inherit pname;
+ version = checkedVersion;
+ id = "dkcfilkhokojanlmgpbmjidiidoebnbm";
+ drv = extLib.fetchUnpackedExtension {
+ inherit pname;
+ version = checkedVersion;
+ url = "https://github.com/${owner}/${repo}/releases/download/v${checkedVersion}/A2E-v${checkedVersion}.crx";
+ hash = "sha256-ljTgKd9QJTRJ11rlNx+PTynlQvdLW3IEoYNnCeOU2K8=";
+ isCrx = true;
+ };
+}