diff --git a/pkgs/development/python-modules/tritonclient/default.nix b/pkgs/development/python-modules/tritonclient/default.nix index 49393e0c7671..4448047f9611 100644 --- a/pkgs/development/python-modules/tritonclient/default.nix +++ b/pkgs/development/python-modules/tritonclient/default.nix @@ -35,8 +35,11 @@ buildPythonPackage rec { inherit pname version format; python = "py3"; dist = "py3"; - platform = platforms.${stdenv.hostPlatform.system} or { }; - sha256 = hashes.${stdenv.hostPlatform.system} or { }; + platform = + platforms.${stdenv.hostPlatform.system} + or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); + sha256 = + hashes.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); }; propagatedBuildInputs = [