LFE 1.2 does not support OTP 20

This commit is contained in:
Justin Wood 2017-07-12 10:01:40 -04:00
parent 0573610a5f
commit 8dc7d34942
No known key found for this signature in database
GPG Key ID: AD57C47E5F931181
2 changed files with 7 additions and 0 deletions

View File

@ -3,4 +3,5 @@
mkDerivation {
version = "1.2.1";
sha256 = "0j5gjlsk92y14kxgvd80q9vwyhmjkphpzadcswyjxikgahwg1avz";
maximumOTPVersion = "19";
}

View File

@ -2,12 +2,17 @@
{ baseName ? "lfe"
, version
, maximumOTPVersion
, sha256 ? null
, rev ? version
, src ? fetchFromGitHub { inherit rev sha256; owner = "rvirding"; repo = "lfe"; }
}:
let
inherit (stdenv.lib) getVersion versionAtLeast splitString head;
mainVersion = head (splitString "." (getVersion erlang));
proper = buildHex {
name = "proper";
version = "1.1.1-beta";
@ -20,6 +25,7 @@ let
};
in
assert versionAtLeast maximumOTPVersion mainVersion;
buildRebar3 {
name = baseName;