2009-11-11 15:52:26 +00:00
|
|
|
{ stdenv, fetchurl, unzip, jdk, lib }:
|
2008-01-23 12:25:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-11-11 15:52:26 +00: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 12:25:08 +00:00
|
|
|
|
2009-11-11 15:52:26 +00:00
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
sed -i -e "/GREP/aJAVA_HOME=${jdk}" bin/run.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out
|
2009-11-11 15:52:26 +00:00
|
|
|
cp -av * $out
|
|
|
|
'';
|
|
|
|
|
2008-01-23 12:25:08 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "http://www.jboss.org/";
|
|
|
|
description = "JBoss, Open Source J2EE application server";
|
|
|
|
license = "GPL/LGPL";
|
2009-11-11 15:52:26 +00:00
|
|
|
maintainers = [ lib.maintainers.sander ];
|
2008-01-23 12:25:08 +00:00
|
|
|
};
|
|
|
|
}
|