summary refs log tree commit diff
path: root/pkgs/development/interpreters/erlang/R15B02.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2012-11-21 16:20:36 +0100
committerPeter Simons <simons@cryp.to>2012-11-21 16:20:36 +0100
commitf67d5a9a39c658ba38ce4efd3968fb76ed97ac70 (patch)
treefb0a753dab894f13519ea969ad7edcfc19e3b56f /pkgs/development/interpreters/erlang/R15B02.nix
parent473ba2212d3b8cc16b5ffb2f5a6367425614357c (diff)
parent9ada368ef842d5bc52d0db0b92ee0217cc213a83 (diff)
downloadnixlib-f67d5a9a39c658ba38ce4efd3968fb76ed97ac70.tar
nixlib-f67d5a9a39c658ba38ce4efd3968fb76ed97ac70.tar.gz
nixlib-f67d5a9a39c658ba38ce4efd3968fb76ed97ac70.tar.bz2
nixlib-f67d5a9a39c658ba38ce4efd3968fb76ed97ac70.tar.lz
nixlib-f67d5a9a39c658ba38ce4efd3968fb76ed97ac70.tar.xz
nixlib-f67d5a9a39c658ba38ce4efd3968fb76ed97ac70.tar.zst
nixlib-f67d5a9a39c658ba38ce4efd3968fb76ed97ac70.zip
Merge branch 'master' into stdenv-updates.
Conflicts have been resolved in:

        pkgs/tools/misc/file/default.nix
        pkgs/top-level/all-packages.nix
        pkgs/top-level/python-packages.nix
Diffstat (limited to 'pkgs/development/interpreters/erlang/R15B02.nix')
-rw-r--r--pkgs/development/interpreters/erlang/R15B02.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/erlang/R15B02.nix b/pkgs/development/interpreters/erlang/R15B02.nix
new file mode 100644
index 000000000000..858f77531773
--- /dev/null
+++ b/pkgs/development/interpreters/erlang/R15B02.nix
@@ -0,0 +1,45 @@
+{ stdenv, fetchurl, perl, gnum4, ncurses, openssl
+, wxSupport ? false, mesa ? null, wxGTK ? null, xlibs ? null }:
+
+assert wxSupport -> mesa != null && wxGTK != null && xlibs != null;
+
+let version = "15B02"; in
+
+stdenv.mkDerivation {
+  name = "erlang-" + version;
+
+  src = fetchurl {
+    url = "http://www.erlang.org/download/otp_src_R${version}.tar.gz";
+    sha256 = "03eb0bd640916666ff83df1330912225fbf555e0c8cf58bb35d8307a314f1158";
+  };
+
+  buildInputs =
+    [ perl gnum4 ncurses openssl
+    ] ++ stdenv.lib.optional wxSupport [ mesa wxGTK xlibs.libX11 ];
+
+  patchPhase = '' sed -i "s@/bin/rm@rm@" lib/odbc/configure erts/configure '';
+
+  preConfigure = ''
+    export HOME=$PWD/../
+    sed -e s@/bin/pwd@pwd@g -i otp_build
+  '';
+
+  configureFlags = "--with-ssl=${openssl}";
+
+  meta = {
+    homepage = "http://www.erlang.org/";
+    description = "Programming language used for massively scalable soft real-time systems";
+
+    longDescription = ''
+      Erlang is a programming language used to build massively scalable
+      soft real-time systems with requirements on high availability.
+      Some of its uses are in telecoms, banking, e-commerce, computer
+      telephony and instant messaging. Erlang's runtime system has
+      built-in support for concurrency, distribution and fault
+      tolerance.
+    '';
+
+    platforms = stdenv.lib.platforms.linux;
+    maintainers = [ stdenv.lib.maintainers.simons ];
+  };
+}