etcher: throw on unsupported systems

figsoda 684c175f 0214723a

+6 -2
+6 -2
pkgs/tools/misc/etcher/default.nix
··· 9 9 }: 10 10 11 11 let 12 + inherit (stdenv.hostPlatform) system; 13 + 14 + throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}"; 15 + 12 16 sha256 = { 13 17 "x86_64-linux" = "sha256-n8i4ZqjugeUfXpTzVgIwVomfPk6HvPEbTZLe/jFgwFg="; 14 18 "i686-linux" = "sha256-lLGfhW6el2ZOcaykH1kTjGldXo7/0q5O8QnslnDlWAQ="; 15 - }."${stdenv.system}"; 19 + }."${system}" or throwSystem; 16 20 17 21 arch = { 18 22 "x86_64-linux" = "amd64"; 19 23 "i686-linux" = "i386"; 20 - }."${stdenv.system}"; 24 + }."${system}" or throwSystem; 21 25 22 26 electron = electron_12; 23 27