mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
59b9b178c9
This commits extends the functionality of electron's update script by - making it possible to update both binary and from source built releases. - adding the `--source-only` and `--bin-only` options for limiting the update mechanism to source or binary releases. - adding a `--commit` option to automatically commit the changes for you.
12 lines
283 B
Nix
12 lines
283 B
Nix
{ lib, callPackage }:
|
|
|
|
let
|
|
mkElectron = callPackage ./generic.nix { };
|
|
infoJson = builtins.fromJSON (builtins.readFile ./info.json);
|
|
in
|
|
lib.mapAttrs' (majorVersion: info:
|
|
lib.nameValuePair
|
|
"electron_${majorVersion}-bin"
|
|
(mkElectron info.version info.hashes)
|
|
) infoJson
|