Merge pull request #26784 from markus1189/ammonite-disable-remote-logging

ammonite: disable remote logging by default
This commit is contained in:
Jörg Thalheim 2017-06-23 10:03:31 +01:00 committed by GitHub
commit 69ca7b1457

View file

@ -1,5 +1,8 @@
{ stdenv, lib, fetchurl, makeWrapper, jre }:
{ stdenv, lib, fetchurl, makeWrapper, jre
, disableRemoteLogging ? true
}:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "ammonite-${version}";
version = "0.9.9";
@ -19,7 +22,9 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
cp ${src} $out/bin/amm
chmod +x $out/bin/amm
wrapProgram $out/bin/amm --prefix PATH ":" ${jre}/bin ;
wrapProgram $out/bin/amm \
${optionalString disableRemoteLogging "--add-flags --no-remote-logging"} \
--prefix PATH ":" ${jre}/bin ;
'';
meta = {