From 8126a8ab097699269a558d5972a0e0dd6f2c98d2 Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Wed, 29 Jan 2025 13:52:32 -0500 Subject: firefox-addons: init --- update-addons.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 update-addons.nix (limited to 'update-addons.nix') 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 { + 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 + ); +} -- cgit v1.2.3