forked from mirrors/nixpkgs
* Merge the makeFlags check.
svn path=/nixpkgs/branches/stdenv-updates-merge/; revision=10810
This commit is contained in:
commit
a62b2564ba
29
pkgs/servers/xmpp/openfire/3.4.5.nix
Normal file
29
pkgs/servers/xmpp/openfire/3.4.5.nix
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
args : with args; with builderDefs {src="";} null;
|
||||||
|
let localDefs = builderDefs (rec {
|
||||||
|
src = /* put a fetchurl here */
|
||||||
|
fetchurl {
|
||||||
|
url = http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3_4_5.tar.gz;
|
||||||
|
sha256 = "0j1ddk0wiqxhbi3872vf2mqx0jynswrvbfbabrp73zqhz3mdvsal";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [jre];
|
||||||
|
configureFlags = [];
|
||||||
|
|
||||||
|
installPhase = FullDepEntry (''
|
||||||
|
sed -e 's@\(common_jvm_locations\)=.*@\1${jre}@' -i bin/openfire
|
||||||
|
cp -r . $out
|
||||||
|
'')
|
||||||
|
["minInit" "doUnpack" "findInputs"];
|
||||||
|
}) null; /* null is a terminator for sumArgs */
|
||||||
|
in with localDefs;
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "openfire-"+version;
|
||||||
|
builder = writeScript (name + "-builder")
|
||||||
|
(textClosure localDefs
|
||||||
|
[ doForceShare doPropagate installPhase]);
|
||||||
|
meta = {
|
||||||
|
description = "
|
||||||
|
XMPP server in Java.
|
||||||
|
";
|
||||||
|
};
|
||||||
|
}
|
|
@ -615,7 +615,7 @@ buildPhase() {
|
||||||
|
|
||||||
eval "$preBuild"
|
eval "$preBuild"
|
||||||
|
|
||||||
if ! test -n "$makefile" -o -e "Makefile" -o -e "makefile" -o -e "GNUmakefile"; then
|
if test -z "$makeFlags" && ! test -n "$makefile" -o -e "Makefile" -o -e "makefile" -o -e "GNUmakefile"; then
|
||||||
echo "no Makefile, doing nothing"
|
echo "no Makefile, doing nothing"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue