1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00
nixpkgs/pkgs/servers/http/jboss/default.nix
Eelco Dolstra c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00

28 lines
616 B
Nix

{ stdenv, fetchurl, unzip, jdk, lib }:
stdenv.mkDerivation {
name = "jboss-5.1.0.GA";
src = fetchurl {
url = mirror://sourceforge/jboss/jboss-5.1.0.GA-jdk6.zip;
sha256 = "0wy5666h554x1qq4w0rzg3krp4rqrijq0ql7dkx6qgl3vpj9xr5y";
};
buildInputs = [ unzip ];
buildPhase = ''
sed -i -e "/GREP/aJAVA_HOME=${jdk}" bin/run.sh
'';
installPhase = ''
mkdir -p $out
cp -av * $out
'';
meta = {
homepage = "http://www.jboss.org/";
description = "JBoss, Open Source J2EE application server";
license = "GPL/LGPL";
maintainers = [ lib.maintainers.sander ];
};
}