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
2 changed files with 7 additions and 0 deletions
@@ -3,4 +3,5 @@
mkDerivation { mkDerivation {
version = "1.2.1"; version = "1.2.1";
sha256 = "0j5gjlsk92y14kxgvd80q9vwyhmjkphpzadcswyjxikgahwg1avz"; sha256 = "0j5gjlsk92y14kxgvd80q9vwyhmjkphpzadcswyjxikgahwg1avz";
maximumOTPVersion = "19";
} }
@@ -2,12 +2,17 @@
{ baseName ? "lfe" { baseName ? "lfe"
, version , version
, maximumOTPVersion
, sha256 ? null , sha256 ? null
, rev ? version , rev ? version
, src ? fetchFromGitHub { inherit rev sha256; owner = "rvirding"; repo = "lfe"; } , src ? fetchFromGitHub { inherit rev sha256; owner = "rvirding"; repo = "lfe"; }
}: }:
let let
inherit (stdenv.lib) getVersion versionAtLeast splitString head;
mainVersion = head (splitString "." (getVersion erlang));
proper = buildHex { proper = buildHex {
name = "proper"; name = "proper";
version = "1.1.1-beta"; version = "1.1.1-beta";
@@ -20,6 +25,7 @@ let
}; };
in in
assert versionAtLeast maximumOTPVersion mainVersion;
buildRebar3 { buildRebar3 {
name = baseName; name = baseName;