nixpkgs/pkgs/development/tools/electron/binary/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
291 B
Nix
Raw Normal View History

let
infoJson = builtins.fromJSON (builtins.readFile ./info.json);
in
{ lib, callPackage }:
2016-04-04 16:11:41 +00:00
let
2023-10-03 01:03:18 +00:00
mkElectron = callPackage ./generic.nix { };
in
lib.mapAttrs' (majorVersion: info:
lib.nameValuePair
"electron_${majorVersion}-bin"
(mkElectron info.version info.hashes)
) infoJson