nix-crx/extensions/default.nix

19 lines
377 B
Nix
Raw Normal View History

2021-03-17 22:01:27 +02:00
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)