diff options
| author | Seth Flynn <[email protected]> | 2025-01-29 13:52:32 -0500 |
|---|---|---|
| committer | Seth Flynn <[email protected]> | 2025-01-29 13:52:32 -0500 |
| commit | 8126a8ab097699269a558d5972a0e0dd6f2c98d2 (patch) | |
| tree | 2eff0c4d1c75abdc5f1dd067b7510986d357f4d1 /pkgs/firefoxAddonUpdateScript/package.nix | |
| parent | 46f1cf5b41e06a833c2521a3eb2b71c6fcbc2f46 (diff) | |
firefox-addons: initfirefox-addons
Diffstat (limited to 'pkgs/firefoxAddonUpdateScript/package.nix')
| -rw-r--r-- | pkgs/firefoxAddonUpdateScript/package.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/firefoxAddonUpdateScript/package.nix b/pkgs/firefoxAddonUpdateScript/package.nix new file mode 100644 index 0000000..9590caa --- /dev/null +++ b/pkgs/firefoxAddonUpdateScript/package.nix @@ -0,0 +1,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 +] |
