diff options
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 + ); +} |
