summary refs log tree commit diff
path: root/pkgs/development/beam-modules/lib.nix
diff options
context:
space:
mode:
authorJustin Wood <justin.k.wood@gmail.com>2017-06-26 23:09:11 -0400
committerJustin Wood <justin.k.wood@gmail.com>2017-06-26 23:13:58 -0400
commit46faaa69b86ba0ef9d416358de0ab3929985a6b4 (patch)
tree132c0d320c14ab801c3b2f6c6fbdeeb830ac47a2 /pkgs/development/beam-modules/lib.nix
parent803797c6d6983ea2652247b8335aa1f96744d323 (diff)
downloadnixpkgs-46faaa69b86ba0ef9d416358de0ab3929985a6b4.tar
nixpkgs-46faaa69b86ba0ef9d416358de0ab3929985a6b4.tar.gz
nixpkgs-46faaa69b86ba0ef9d416358de0ab3929985a6b4.tar.bz2
nixpkgs-46faaa69b86ba0ef9d416358de0ab3929985a6b4.tar.lz
nixpkgs-46faaa69b86ba0ef9d416358de0ab3929985a6b4.tar.xz
nixpkgs-46faaa69b86ba0ef9d416358de0ab3929985a6b4.tar.zst
nixpkgs-46faaa69b86ba0ef9d416358de0ab3929985a6b4.zip
Make assertion for OTP version in the generic elixir builder
Changed Elixir 1.5 to include the fact it is an rc release
Diffstat (limited to 'pkgs/development/beam-modules/lib.nix')
-rw-r--r--pkgs/development/beam-modules/lib.nix10
1 files changed, 3 insertions, 7 deletions
diff --git a/pkgs/development/beam-modules/lib.nix b/pkgs/development/beam-modules/lib.nix
index 8a93282d1ec..43c1a3e45d5 100644
--- a/pkgs/development/beam-modules/lib.nix
+++ b/pkgs/development/beam-modules/lib.nix
@@ -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;
+      };
 
 }