aboutsummaryrefslogtreecommitdiffstats
path: root/modules/web/chromium/extensions/dark-mode.nix
blob: 170b8d924df61ae35361c71604c544be5ada3027 (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 = "dark-mode";
  owner = "code-charity";
  repo = "dark-mode";
  version = "3.3.11";
  checkedVersion = extLib.checkExtensionVersion {
    inherit
      pname
      owner
      repo
      version
      ;
    tagPrefix = "v";
    urlTemplate = "https://github.com/${owner}/${repo}/archive/refs/tags/v<version>.zip";
  };
in
{
  inherit pname;
  version = checkedVersion;
  id = "ifpghghnlimndidoppdkdnbljddikfoj";
  drv = extLib.fetchUnpackedExtension {
    inherit pname;
    version = checkedVersion;
    url = "https://github.com/${owner}/${repo}/archive/refs/tags/v${checkedVersion}.zip";
    hash = "sha256-Lt3T8i0ylV0l+T0eqnzs6veBcOpizhP79LgSkUx4xI8=";
  };
}