diff options
author | Graham Christensen <graham@grahamc.com> | 2017-12-19 06:48:41 -0500 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2017-12-19 06:48:41 -0500 |
commit | 035aca9d096d3154cf0aca016a13e661e4caf518 (patch) | |
tree | ac978e0f6afa10ef43c795c4d123394d8adcaa58 /pkgs/development/tools/electron | |
parent | 1bc288591ea4fe3159b7630dcd2b57733d80a2ff (diff) |
electron: Properly handle evaluating on unsupported archs
Diffstat (limited to 'pkgs/development/tools/electron')
-rw-r--r-- | pkgs/development/tools/electron/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/tools/electron/default.nix b/pkgs/development/tools/electron/default.nix index c3615f1e72ec..fb91989775b4 100644 --- a/pkgs/development/tools/electron/default.nix +++ b/pkgs/development/tools/electron/default.nix @@ -4,6 +4,8 @@ let version = "1.7.9"; name = "electron-${version}"; + throwSystem = throw "Unsupported system: ${stdenv.system}"; + meta = with stdenv.lib; { description = "Cross platform desktop application shell"; homepage = https://github.com/electron/electron; @@ -28,7 +30,7 @@ let url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-armv7l.zip"; sha256 = "17jkma50d6az8dbyrym8z2lsw2n0r6jhdlm8pb5c928bzgshryqm"; }; - }.${stdenv.system}; + }.${stdenv.system} or throwSystem; buildInputs = [ unzip makeWrapper ]; |