c54a8ed1d0
updating tomcat to version 7
24 lines
534 B
Nix
24 lines
534 B
Nix
{ versionMajor, versionMinor, sha256 }:
|
|
{ stdenv, fetchurl }:
|
|
|
|
let version = "${versionMajor}.${versionMinor}"; in
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "apache-tomcat-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://apache/tomcat/tomcat-${versionMajor}/v${version}/bin/${name}.tar.gz";
|
|
inherit sha256;
|
|
};
|
|
|
|
installPhase =
|
|
''
|
|
mkdir $out
|
|
mv * $out
|
|
'';
|
|
|
|
meta = {
|
|
homepage = http://tomcat.apache.org/;
|
|
description = "An implementation of the Java Servlet and JavaServer Pages technologies";
|
|
};
|
|
}
|