1 { lib, stdenv, fetchurl, jdk }:
3 stdenv.mkDerivation rec {
5 version = "7.1.1.Final";
7 url = "https://download.jboss.org/jbossas/${lib.versions.majorMinor version}/jboss-as-${version}/jboss-as-${version}.tar.gz";
8 sha256 = "1bdjw0ib9qr498vpfbg8klqw6rl11vbz7vwn6gp1r5gpqkd3zzc8";
13 find $out/bin -name \*.sh -print0 | xargs -0 sed -i -e '/#!\/bin\/sh/aJAVA_HOME=${jdk}'
17 homepage = "https://www.jboss.org/";
18 description = "Open Source J2EE application server";
19 sourceProvenance = with sourceTypes; [ binaryBytecode ];
20 license = licenses.lgpl21;
21 maintainers = [ maintainers.sander ];
22 platforms = platforms.unix;
23 knownVulnerabilities = [
24 "CVE-2015-7501: remote code execution in apache-commons-collections: InvokerTransformer during deserialisation"