···135135 # The SSH agent protocol doesn't have support for changing TTYs; however we
136136 # can simulate this with the `exec` feature of openssh (see ssh_config(5))
137137 # that hooks a command to the shell currently running the ssh program.
138138- Match host * exec "${cfg.package}/bin/gpg-connect-agent --quiet updatestartuptty /bye > /dev/null"
138138+ Match host * exec "${cfg.package}/bin/gpg-connect-agent --quiet updatestartuptty /bye >/dev/null 2>&1"
139139 '';
140140141141 environment.extraInit = mkIf cfg.agent.enableSSHSupport ''
···11+diff --git a/samcli/local/services/base_local_service.py b/samcli/local/services/base_local_service.py
22+index 7b1ab95895d1..76812f02e00a 100644
33+--- a/samcli/local/services/base_local_service.py
44++++ b/samcli/local/services/base_local_service.py
55+@@ -56,9 +56,11 @@ class BaseLocalService:
66+77+ LOG.debug("Localhost server is starting up. Multi-threading = %s", multi_threaded)
88+99+- # This environ signifies we are running a main function for Flask. This is true, since we are using it within
1010+- # our cli and not on a production server.
1111+- os.environ["WERKZEUG_RUN_MAIN"] = "true"
1212++ # Suppress flask dev server output in a forward-compatible way
1313++ # Source: https://github.com/cs01/gdbgui/issues/425#issuecomment-1119836533
1414++ import flask.cli
1515++
1616++ flask.cli.show_server_banner = lambda *args: None
1717+1818+ self._app.run(threaded=multi_threaded, host=self.host, port=self.port)
1919+
···2121}:
22222323# daemon and client are not build monolithic
2424-assert monolithic || (!monolithic && (enableDaemon || client));
2424+assert monolithic || (!monolithic && (enableDaemon || client || httpServer));
25252626stdenv.mkDerivation rec {
2727 pname = "amule"
2828+ + lib.optionalString httpServer "-web"
2829 + lib.optionalString enableDaemon "-daemon"
2930 + lib.optionalString client "-gui";
3031 version = "2.3.3";
···5354 "-DBUILD_DAEMON=${if enableDaemon then "ON" else "OFF"}"
5455 "-DBUILD_REMOTEGUI=${if client then "ON" else "OFF"}"
5556 "-DBUILD_WEBSERVER=${if httpServer then "ON" else "OFF"}"
5757+ # building only the daemon fails when these are not set... this is
5858+ # due to mistakes in the Amule cmake code, but it does not cause
5959+ # extra code to be built...
6060+ "-Dwx_NEED_GUI=ON"
6161+ "-Dwx_NEED_ADV=ON"
6262+ "-Dwx_NEED_NET=ON"
5663 ];
6464+6565+ postPatch = ''
6666+ echo "find_package(Threads)" >> cmake/options.cmake
6767+ '';
57685869 # aMule will try to `dlopen' libupnp and libixml, so help it
5970 # find them.
···7990 license = licenses.gpl2Plus;
8091 maintainers = with maintainers; [ ];
8192 platforms = platforms.unix;
8282- # cmake fails: Cannot specify link libraries for target "wxWidgets::ADV" which is not built by this project.
8383- broken = enableDaemon || stdenv.isDarwin;
9393+ broken = stdenv.isDarwin;
8494 };
8595}