tomcat: split default webapps to separate output (~6M)

This commit is contained in:
danbst 2016-09-07 15:58:08 +00:00 committed by Bjørn Forsman
parent 39ad7a9e60
commit 0c2d943529
2 changed files with 5 additions and 2 deletions

View file

@ -74,8 +74,8 @@ in
webapps = mkOption {
type = types.listOf types.package;
default = [ tomcat ];
defaultText = "[ tomcat ]";
default = [ tomcat.webapps ];
defaultText = "[ tomcat.webapps ]";
description = "List containing WAR files or directories with WAR files which are web applications to be deployed on Tomcat";
};

View file

@ -11,10 +11,13 @@ let
inherit sha256;
};
outputs = [ "out" "webapps" ];
installPhase =
''
mkdir $out
mv * $out
mkdir -p $webapps/webapps
mv $out/webapps $webapps/
'';
meta = {