Make assertion for OTP version in the generic elixir builder

Changed Elixir 1.5 to include the fact it is an rc release
This commit is contained in:
Justin Wood
2017-06-26 23:09:11 -04:00
parent 803797c6d6
commit 46faaa69b8
5 changed files with 63 additions and 57 deletions

View File

@@ -62,12 +62,8 @@ rec {
inherit (stdenv.lib) versionAtLeast;
builder = callPackage ../interpreters/elixir/generic-builder.nix args;
in
if versionAtLeast (getVersion args.erlang) vsn
then
callPackage drv {
mkDerivation = pkgs.makeOverridable builder;
}
else
throw "Elixir requires at least Erlang/OTP R${vsn}.";
callPackage drv {
mkDerivation = pkgs.makeOverridable builder;
};
}