From 5c2d4ef6cfe3bc87cfcca829d4ceb52ede5e69d3 Mon Sep 17 00:00:00 2001 From: Markus Hauck Date: Fri, 23 Jun 2017 09:37:47 +0200 Subject: [PATCH] ammonite: disable remote logging by default --- pkgs/development/tools/ammonite/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/ammonite/default.nix b/pkgs/development/tools/ammonite/default.nix index 0843c37df066..12551ed741c1 100644 --- a/pkgs/development/tools/ammonite/default.nix +++ b/pkgs/development/tools/ammonite/default.nix @@ -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 = {