blob: 7d11ee4111c86bc0fc888c1559f0aa41905e4f58 (
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
|
{
lib,
pkgs,
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 = "nnpdegnhelmjgchicpfdigllmhgpndeg"; # unpacked, ID derives from manifest key at load time
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=";
};
}
|