nix-crx/extensions/default.nix
2021-03-17 21:01:27 +01:00

18 lines
377 B
Nix

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)