tritonclient: throw on unsupported systems

authored by

Charlotte 🦝 Deleńkec and committed by
Weijia Wang
461b5921 e2dda6ab

+5 -2
+5 -2
pkgs/development/python-modules/tritonclient/default.nix
··· 35 35 inherit pname version format; 36 36 python = "py3"; 37 37 dist = "py3"; 38 - platform = platforms.${stdenv.hostPlatform.system} or { }; 39 - sha256 = hashes.${stdenv.hostPlatform.system} or { }; 38 + platform = 39 + platforms.${stdenv.hostPlatform.system} 40 + or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); 41 + sha256 = 42 + hashes.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); 40 43 }; 41 44 42 45 propagatedBuildInputs = [