diff options
-rw-r--r-- | pkgs/development/tools/ammonite/default.nix | 9 |
1 files 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 = { |