mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
Merge pull request #26784 from markus1189/ammonite-disable-remote-logging
ammonite: disable remote logging by default
This commit is contained in:
commit
69ca7b1457
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user