aboutsummaryrefslogtreecommitdiffstats
path: root/modules/web/chromium/extensions/aria2-explorer.nix
blob: 1f6e5b1f316dfd118385374fbdb6421255d9d489 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;
  };
}