Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions pkgs/development/compilers/opensmalltalk-vm/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
config,
stdenv,
lib,
fetchFromGitHub,
Expand Down Expand Up @@ -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)
))
Loading