Unverified Commit e26ecf5c authored by Wolfgang Walther's avatar Wolfgang Walther
Browse files

beamPackages.lfe: avoid throwing for incompatibility in CI

Same reasoning as commit before.
parent 093e7390
Loading
Loading
Loading
Loading
+81 −75
Original line number Diff line number Diff line
{
  config,
  lib,
  fetchFromGitHub,
  erlang,
@@ -37,6 +38,8 @@ let

  mainVersion = versions.major (getVersion erlang);

  maxAssert = versionAtLeast maximumOTPVersion mainVersion;

  proper = buildHex {
    name = "proper";
    version = "1.4.0";
@@ -45,10 +48,13 @@ let
  };

in
assert (assertMsg (versionAtLeast maximumOTPVersion mainVersion)) ''
if !config.allowAliases && !maxAssert then
  # Don't throw without aliases to not break CI.
  null
else
  assert assertMsg maxAssert ''
    LFE ${version} is supported on OTP <=${maximumOTPVersion}, not ${mainVersion}.
  '';

  buildRebar3 {
    name = baseName;