aboutsummaryrefslogtreecommitdiffstats
path: root/modules/web/chromium/extensions/searxng-home.nix
blob: cd7578f9bb25828987c0167699f0c14c8e6b1ec9 (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
34
35
36
37
{
  lib,
  pkgs,
  extLib,
}:
let
  pname = "searxng-home";
  owner = "arpitchakladar";
  repo = "searxng-home";

  version = "0.1.0";

  checkedVersion = extLib.checkExtensionVersion {
    inherit
      pname
      owner
      repo
      version
      ;
    tagPrefix = "v";
    urlTemplate = "https://github.com/${owner}/${repo}/releases/download/v<version>/chrome-v<version>.zip";
  };
in
{
  inherit pname;
  version = checkedVersion;

  id = "your_extension_id_here";

  drv = extLib.fetchUnpackedExtension {
    inherit pname;
    version = checkedVersion;
    url = "https://github.com/${owner}/${repo}/releases/download/v${checkedVersion}/searxng-home-${checkedVersion}.zip";
    hash = lib.fakeHash;
    isCrx = false;
  };
}