2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, jdk }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jboss-as";
|
|
|
|
version = "7.1.1.Final";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2021-05-28 09:39:13 +00:00
|
|
|
url = "https://download.jboss.org/jbossas/${lib.versions.majorMinor version}/jboss-as-${version}/jboss-as-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1bdjw0ib9qr498vpfbg8klqw6rl11vbz7vwn6gp1r5gpqkd3zzc8";
|
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
|
|
|
mv $PWD $out
|
|
|
|
find $out/bin -name \*.sh -print0 | xargs -0 sed -i -e '/#!\/bin\/sh/aJAVA_HOME=${jdk}'
|
|
|
|
'';
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-07 09:15:18 +00:00
|
|
|
homepage = "https://www.jboss.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Open Source J2EE application server";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = [ maintainers.sander ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
knownVulnerabilities = [
|
|
|
|
"CVE-2015-7501: remote code execution in apache-commons-collections: InvokerTransformer during deserialisation"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|