Unverified Commit f3e80f8e authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

opensmalltalk-vm: don't throw without aliases (#427246)

parents 65d091b5 7c77a0fa
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
{
  config,
  stdenv,
  lib,
  fetchFromGitHub,
@@ -190,6 +191,10 @@ let

  platform = stdenv.targetPlatform.system;
in
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)