2009-11-11 16:52:26 +01:00
|
|
|
{ stdenv, fetchurl, unzip, jdk, lib }:
|
2008-01-23 13:25:08 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2013-05-01 17:22:37 +02:00
|
|
|
name = "jboss-as-7.1.1.Final";
|
2009-11-11 16:52:26 +01:00
|
|
|
src = fetchurl {
|
2013-05-01 17:22:37 +02:00
|
|
|
url = http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.tar.gz;
|
|
|
|
sha256 = "1bdjw0ib9qr498vpfbg8klqw6rl11vbz7vwn6gp1r5gpqkd3zzc8";
|
2009-11-11 16:52:26 +01:00
|
|
|
};
|
2008-01-23 13:25:08 +01:00
|
|
|
|
2009-11-11 16:52:26 +01:00
|
|
|
buildInputs = [ unzip ];
|
2013-05-01 17:22:37 +02:00
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
|
2009-11-11 16:52:26 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2013-05-01 17:22:37 +02:00
|
|
|
mv $PWD $out
|
|
|
|
find $out/bin -name \*.sh -print0 | xargs -0 sed -i -e '/#!\/bin\/sh/aJAVA_HOME=${jdk}'
|
2009-11-11 16:52:26 +01:00
|
|
|
'';
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|