nixpkgs-suyu/pkgs/servers/http/jboss/default.nix
Eelco Dolstra c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00

27 lines
616 B
Nix

{ stdenv, fetchurl, unzip, jdk, lib }:
stdenv.mkDerivation {
name = "jboss-5.1.0.GA";
src = fetchurl {
url = mirror://sourceforge/jboss/jboss-5.1.0.GA-jdk6.zip;
sha256 = "0wy5666h554x1qq4w0rzg3krp4rqrijq0ql7dkx6qgl3vpj9xr5y";
};
buildInputs = [ unzip ];
buildPhase = ''
sed -i -e "/GREP/aJAVA_HOME=${jdk}" bin/run.sh
'';
installPhase = ''
mkdir -p $out
cp -av * $out
'';
meta = {
homepage = "http://www.jboss.org/";
description = "JBoss, Open Source J2EE application server";
license = "GPL/LGPL";
maintainers = [ lib.maintainers.sander ];
};
}