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 /update-addons.nix | |
| parent | 46f1cf5b41e06a833c2521a3eb2b71c6fcbc2f46 (diff) | |
firefox-addons: initfirefox-addons
Diffstat (limited to 'update-addons.nix')
| -rw-r--r-- | update-addons.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/update-addons.nix b/update-addons.nix new file mode 100644 index 0000000..994245a --- /dev/null +++ b/update-addons.nix @@ -0,0 +1,30 @@ +{ + pkgs ? import <nixpkgs> { + inherit system; + config = { }; + overlays = [ ]; + }, + system ? builtins.currentSystem, +}: + +let + inherit (pkgs) lib; + + getchpkgs = import ./default.nix { inherit pkgs; }; +in + +pkgs.writeShellApplication { + name = "update-firefox-addons"; + + text = lib.concatLines ( + lib.mapAttrsToList ( + pname: drv: + lib.escapeShellArgs ( + getchpkgs.firefoxAddonUpdateScript { + attrPath = "firefox-addons.${pname}"; + inherit (drv.passthru) addonRef; + } + ) + ) getchpkgs.firefox-addons + ); +} |
