summaryrefslogtreecommitdiff
path: root/pkgs/firefoxAddonUpdateScript/package.nix
blob: 9590caa1c70d158b62e164294461862dd6b4e013 (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,
  common-updater-scripts,
  curl,
  jq,
  writeShellApplication,
}:

let
  script = writeShellApplication {
    name = "firefox-addon-update-script";

    runtimeInputs = [
      common-updater-scripts
      curl
      jq
    ];

    text = lib.fileContents ./script.sh;
  };
in

{
  addonRef,
  attrPath,
}:

[
  (lib.getExe script)
  attrPath
  addonRef
]