pkgs: lib: let extensions = lib.importJSON ./extensions-generated.json; enhance = ext: ext // { crx = with ext; { inherit id; inherit version; crxPath = "${outPath}/${id}.crx"; }; }; in builtins.listToAttrs (map (crxMeta: { name = crxMeta.name; value = enhance (pkgs.callPackage ./crx.nix {} crxMeta); } ) extensions)