ookla-speedtest: fix syntax error when evaling on unsupported platforms

This commit is contained in:
Sandro Jäckel 2021-11-19 23:49:26 +01:00
parent e95cf601a3
commit eef64da3db
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -19,7 +19,7 @@ in
stdenv.mkDerivation rec {
inherit pname version;
src = srcs.${stdenv.hostPlatform.system};
src = srcs.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
setSourceRoot = ''
sourceRoot=$PWD