aboutsummaryrefslogtreecommitdiffstats
path: root/modules/web/chromium/extensions/ublock-origin.nix
blob: a46d5b74c27cbce359abee4368f27e8d7228b5bd (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
{
  extLib,
  ...
}:
let
  pname = "ublock-origin";
  owner = "gorhill";
  repo = "uBlock";
  version = "1.72.2";
  checkedVersion = extLib.checkExtensionVersion {
    inherit
      pname
      owner
      repo
      version
      ;
    tagPrefix = "";
    urlTemplate = "https://github.com/${owner}/${repo}/releases/download/<version>/uBlock0_<version>.chromium.zip";
  };
in
{
  inherit pname;
  version = checkedVersion;
  id = "ojmlhihnkagpnkkkjngdngbiidmafdbm";
  drv = extLib.fetchUnpackedExtension {
    inherit pname;
    version = checkedVersion;
    url = "https://github.com/${owner}/${repo}/releases/download/${checkedVersion}/uBlock0_${checkedVersion}.chromium.zip";
    hash = "sha256-0QTKxOH0jXaxw/+Irt4uqoJpgUrgbMnIUNJ6+1J05TM=";
  };
}