depot/third_party/nixpkgs/pkgs/development/tools/electron/binary/default.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