2009-11-11 16:52:26 +01:00
|
|
|
{ stdenv, fetchurl, unzip, jdk, lib }:
|
2008-01-23 13:25:08 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-11-11 16:52:26 +01:00
|
|
|
name = "jboss-5.1.0.GA";
|
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://sourceforge/jboss/jboss-5.1.0.GA-jdk6.zip;
|
|
|
|
sha256 = "0wy5666h554x1qq4w0rzg3krp4rqrijq0ql7dkx6qgl3vpj9xr5y";
|
|
|
|
};
|
2008-01-23 13:25:08 +01:00
|
|
|
|
2009-11-11 16:52:26 +01:00
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
sed -i -e "/GREP/aJAVA_HOME=${jdk}" bin/run.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out
|
2009-11-11 16:52:26 +01:00
|
|
|
cp -av * $out
|
|
|
|
'';
|
|
|
|
|
2008-01-23 13:25:08 +01:00
|
|
|
meta = {
|
|
|
|
homepage = "http://www.jboss.org/";
|
|
|
|
description = "JBoss, Open Source J2EE application server";
|
|
|
|
license = "GPL/LGPL";
|
2009-11-11 16:52:26 +01:00
|
|
|
maintainers = [ lib.maintainers.sander ];
|
2008-01-23 13:25:08 +01:00
|
|
|
};
|
|
|
|
}
|