aboutsummaryrefslogtreecommitdiffstats
path: root/modules/web/chromium/extensions/ublock-origin.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/web/chromium/extensions/ublock-origin.nix')
-rw-r--r--modules/web/chromium/extensions/ublock-origin.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/web/chromium/extensions/ublock-origin.nix b/modules/web/chromium/extensions/ublock-origin.nix
new file mode 100644
index 0000000..7d11ee4
--- /dev/null
+++ b/modules/web/chromium/extensions/ublock-origin.nix
@@ -0,0 +1,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=";
+ };
+}