mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
Added erlang/ejabberd packages
svn path=/nixpkgs/trunk/; revision=10258
This commit is contained in:
parent
8c9f87cd0c
commit
d5b4e5606f
14
pkgs/development/interpreters/erlang/builder.sh
Normal file
14
pkgs/development/interpreters/erlang/builder.sh
Normal file
@ -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
|
11
pkgs/development/interpreters/erlang/default.nix
Normal file
11
pkgs/development/interpreters/erlang/default.nix
Normal file
@ -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;
|
||||
}
|
9
pkgs/servers/xmpp/ejabberd/builder.sh
Normal file
9
pkgs/servers/xmpp/ejabberd/builder.sh
Normal file
@ -0,0 +1,9 @@
|
||||
buildInputs="$expat $erlang $zlib $openssl"
|
||||
|
||||
source $stdenv/setup
|
||||
|
||||
tar xfvz $src
|
||||
cd $name/src
|
||||
./configure --prefix=$out
|
||||
make
|
||||
make install
|
11
pkgs/servers/xmpp/ejabberd/default.nix
Normal file
11
pkgs/servers/xmpp/ejabberd/default.nix
Normal file
@ -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;
|
||||
}
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user