mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-29 16:57:40 +03:00
electron: Properly handle evaluating on unsupported archs
This commit is contained in:
parent
1bc288591e
commit
035aca9d09
@ -4,6 +4,8 @@ let
|
|||||||
version = "1.7.9";
|
version = "1.7.9";
|
||||||
name = "electron-${version}";
|
name = "electron-${version}";
|
||||||
|
|
||||||
|
throwSystem = throw "Unsupported system: ${stdenv.system}";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Cross platform desktop application shell";
|
description = "Cross platform desktop application shell";
|
||||||
homepage = https://github.com/electron/electron;
|
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";
|
url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-armv7l.zip";
|
||||||
sha256 = "17jkma50d6az8dbyrym8z2lsw2n0r6jhdlm8pb5c928bzgshryqm";
|
sha256 = "17jkma50d6az8dbyrym8z2lsw2n0r6jhdlm8pb5c928bzgshryqm";
|
||||||
};
|
};
|
||||||
}.${stdenv.system};
|
}.${stdenv.system} or throwSystem;
|
||||||
|
|
||||||
buildInputs = [ unzip makeWrapper ];
|
buildInputs = [ unzip makeWrapper ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user