Skip to content

Commit

Permalink
electron: Properly handle evaluating on unsupported archs
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Dec 19, 2017
1 parent 1bc2885 commit 035aca9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/development/tools/electron/default.nix
Expand Up @@ -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;
Expand All @@ -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 ];

Expand Down

0 comments on commit 035aca9

Please sign in to comment.