nixpkgs/pkgs/servers/http/tomcat/recent.nix
sfultong c54a8ed1d0 Merge pull request #1 from sfultongv/sfultong-14.04
updating tomcat to version 7
2014-08-20 23:08:39 -04:00

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";
};
}