13 lines
286 B
Nix
13 lines
286 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
|