diff options
author | Sander van der Burg <s.vanderburg@tudelft.nl> | 2008-09-22 14:07:25 +0000 |
---|---|---|
committer | Sander van der Burg <s.vanderburg@tudelft.nl> | 2008-09-22 14:07:25 +0000 |
commit | 8d679b635169085943b40b5771b110bd2dcc35e9 (patch) | |
tree | 0b9cca4d58069153cd2e31a57121284a6ba2c784 /pkgs/servers | |
parent | 113e5eff46a451d59d9408c55b648f8fda88a315 (diff) |
Created simplified ejabberd Nix expression
svn path=/nixpkgs/trunk/; revision=12899
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/xmpp/ejabberd/builder.sh | 10 | ||||
-rw-r--r-- | pkgs/servers/xmpp/ejabberd/default.nix | 14 |
2 files changed, 12 insertions, 12 deletions
diff --git a/pkgs/servers/xmpp/ejabberd/builder.sh b/pkgs/servers/xmpp/ejabberd/builder.sh deleted file mode 100644 index df0dd1963e2a5..0000000000000 --- a/pkgs/servers/xmpp/ejabberd/builder.sh +++ /dev/null @@ -1,10 +0,0 @@ -source $stdenv/setup - -tar xfvz $src -cd ejabberd-*/src -./configure --prefix=$out -make -make install - -# Fix runtime dependency for erlang -sed -i -e "s|erl \\\|$erlang/bin/erl \\\|" $out/sbin/ejabberdctl diff --git a/pkgs/servers/xmpp/ejabberd/default.nix b/pkgs/servers/xmpp/ejabberd/default.nix index 5409db1cfb36f..27d5bf034a605 100644 --- a/pkgs/servers/xmpp/ejabberd/default.nix +++ b/pkgs/servers/xmpp/ejabberd/default.nix @@ -2,11 +2,21 @@ stdenv.mkDerivation { name = "ejabberd-2.0.0"; - builder = ./builder.sh; src = fetchurl { url = http://www.process-one.net/downloads/ejabberd/2.0.0/ejabberd-2.0.0.tar.gz; sha256 = "086e105cb402ef868e3187277db1486807e1b34a2e3e3679f0ee6de1e5fd2e54"; }; buildInputs = [ expat erlang zlib openssl ]; - inherit expat erlang zlib openssl; + patchPhase = '' + sed -i -e "s|erl \\\|${erlang}/bin/erl \\\|" src/ejabberdctl.template + ''; + preConfigure = '' + cd src + ''; + + meta = { + description = "Open-source XMPP application server written in Erlang"; + license = "GPLv2"; + homepage = http://www.ejabberd.im; + }; } |