mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
8d2a765adf
Some of these were read/parsed dozens of times in a `nix search` invocation, and in particular the MELPA recipes archive (3 MiB) was read 4 times.
15 lines
291 B
Nix
15 lines
291 B
Nix
let
|
|
infoJson = builtins.fromJSON (builtins.readFile ./info.json);
|
|
in
|
|
|
|
{ lib, callPackage }:
|
|
|
|
let
|
|
mkElectron = callPackage ./generic.nix { };
|
|
in
|
|
lib.mapAttrs' (majorVersion: info:
|
|
lib.nameValuePair
|
|
"electron_${majorVersion}-bin"
|
|
(mkElectron info.version info.hashes)
|
|
) infoJson
|