From d5b4e5606f7d220b0e4e8c9bc464bcc12ef0f14d Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Wed, 23 Jan 2008 10:06:07 +0000 Subject: [PATCH] Added erlang/ejabberd packages svn path=/nixpkgs/trunk/; revision=10258 --- pkgs/development/interpreters/erlang/builder.sh | 14 ++++++++++++++ pkgs/development/interpreters/erlang/default.nix | 11 +++++++++++ pkgs/servers/xmpp/ejabberd/builder.sh | 9 +++++++++ pkgs/servers/xmpp/ejabberd/default.nix | 11 +++++++++++ pkgs/top-level/all-packages.nix | 9 +++++++++ 5 files changed, 54 insertions(+) create mode 100644 pkgs/development/interpreters/erlang/builder.sh create mode 100644 pkgs/development/interpreters/erlang/default.nix create mode 100644 pkgs/servers/xmpp/ejabberd/builder.sh create mode 100644 pkgs/servers/xmpp/ejabberd/default.nix diff --git a/pkgs/development/interpreters/erlang/builder.sh b/pkgs/development/interpreters/erlang/builder.sh new file mode 100644 index 000000000000..43c964d88b80 --- /dev/null +++ b/pkgs/development/interpreters/erlang/builder.sh @@ -0,0 +1,14 @@ +buildInputs="$perl $gnum4 $ncurses $openssl" + +source $stdenv/setup + +tar xfvz $src +cd otp_src_* + +# Fix some hard coded paths to /bin/rm +sed -i -e "s|/bin/rm|rm|" lib/odbc/configure +sed -i -e "s|/bin/rm|rm|" erts/configure + +./configure --prefix=$out --with-ssl=$openssl +make +make install diff --git a/pkgs/development/interpreters/erlang/default.nix b/pkgs/development/interpreters/erlang/default.nix new file mode 100644 index 000000000000..f8caed7f329b --- /dev/null +++ b/pkgs/development/interpreters/erlang/default.nix @@ -0,0 +1,11 @@ +{stdenv, fetchurl, perl, ncurses, gnum4, openssl}: + +stdenv.mkDerivation { + name = "erlang-R11B-5"; + builder = ./builder.sh; + src = fetchurl { + url = http://www.erlang.org/download/otp_src_R11B-5.tar.gz; + md5 = "96acec41da87d6ee0ef18e1aab36ffdd"; + }; + inherit perl ncurses gnum4 openssl; +} diff --git a/pkgs/servers/xmpp/ejabberd/builder.sh b/pkgs/servers/xmpp/ejabberd/builder.sh new file mode 100644 index 000000000000..4abf8da0682e --- /dev/null +++ b/pkgs/servers/xmpp/ejabberd/builder.sh @@ -0,0 +1,9 @@ +buildInputs="$expat $erlang $zlib $openssl" + +source $stdenv/setup + +tar xfvz $src +cd $name/src +./configure --prefix=$out +make +make install diff --git a/pkgs/servers/xmpp/ejabberd/default.nix b/pkgs/servers/xmpp/ejabberd/default.nix new file mode 100644 index 000000000000..8ce1b0912de2 --- /dev/null +++ b/pkgs/servers/xmpp/ejabberd/default.nix @@ -0,0 +1,11 @@ +{stdenv, fetchurl, expat, erlang, zlib, openssl}: + +stdenv.mkDerivation { + name = "ejabberd-1.1.4"; + builder = ./builder.sh; + src = fetchurl { + url = http://www.process-one.net/downloads/ejabberd/1.1.4/ejabberd-1.1.4.tar.gz; + md5 = "65e9cd346f11a28afbacfe1d7be3a33b"; + }; + inherit expat erlang zlib openssl; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2f49ddb2f8db..1a44f9ead924 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1265,6 +1265,11 @@ rec { inherit (xlibs) libX11 libXau libXt; }; + erlang = import ../development/interpreters/erlang { + stdenv = overrideGCC stdenv gcc41NPTL; + inherit fetchurl perl gnum4 ncurses openssl; + }; + guile = import ../development/interpreters/guile { inherit fetchurl stdenv ncurses readline libtool gmp; }; @@ -2997,6 +3002,10 @@ rec { inherit fetchurl stdenv ; }; + ejabberd = import ../servers/xmpp/ejabberd { + inherit fetchurl stdenv expat erlang zlib openssl; + }; + ircdHybrid = import ../servers/irc/ircd-hybrid { inherit fetchurl stdenv openssl zlib; };