diff --git a/pkgs/development/compilers/opensmalltalk-vm/default.nix b/pkgs/development/compilers/opensmalltalk-vm/default.nix index e84ec1175514e..7617b7ce877bc 100644 --- a/pkgs/development/compilers/opensmalltalk-vm/default.nix +++ b/pkgs/development/compilers/opensmalltalk-vm/default.nix @@ -1,4 +1,5 @@ { + config, stdenv, lib, fetchFromGitHub, @@ -190,7 +191,11 @@ let platform = stdenv.targetPlatform.system; in -vmsByPlatform.${platform} or (throw ( - "Unsupported platform ${platform}: only the following platforms are supported: " - + builtins.toString (builtins.attrNames vmsByPlatform) -)) +if (!config.allowAliases && !(vmsByPlatform ? platform)) then + # Don't throw without aliases to not break CI. + null +else + vmsByPlatform.${platform} or (throw ( + "Unsupported platform ${platform}: only the following platforms are supported: " + + builtins.toString (builtins.attrNames vmsByPlatform) + ))