···135 # The SSH agent protocol doesn't have support for changing TTYs; however we
136 # can simulate this with the `exec` feature of openssh (see ssh_config(5))
137 # that hooks a command to the shell currently running the ssh program.
138- Match host * exec "${cfg.package}/bin/gpg-connect-agent --quiet updatestartuptty /bye > /dev/null"
139 '';
140141 environment.extraInit = mkIf cfg.agent.enableSSHSupport ''
···135 # The SSH agent protocol doesn't have support for changing TTYs; however we
136 # can simulate this with the `exec` feature of openssh (see ssh_config(5))
137 # that hooks a command to the shell currently running the ssh program.
138+ Match host * exec "${cfg.package}/bin/gpg-connect-agent --quiet updatestartuptty /bye >/dev/null 2>&1"
139 '';
140141 environment.extraInit = mkIf cfg.agent.enableSSHSupport ''
···1+diff --git a/samcli/local/services/base_local_service.py b/samcli/local/services/base_local_service.py
2+index 7b1ab95895d1..76812f02e00a 100644
3+--- a/samcli/local/services/base_local_service.py
4++++ b/samcli/local/services/base_local_service.py
5+@@ -56,9 +56,11 @@ class BaseLocalService:
6+7+ LOG.debug("Localhost server is starting up. Multi-threading = %s", multi_threaded)
8+9+- # This environ signifies we are running a main function for Flask. This is true, since we are using it within
10+- # our cli and not on a production server.
11+- os.environ["WERKZEUG_RUN_MAIN"] = "true"
12++ # Suppress flask dev server output in a forward-compatible way
13++ # Source: https://github.com/cs01/gdbgui/issues/425#issuecomment-1119836533
14++ import flask.cli
15++
16++ flask.cli.show_server_banner = lambda *args: None
17+18+ self._app.run(threaded=multi_threaded, host=self.host, port=self.port)
19+
···21}:
2223# daemon and client are not build monolithic
24-assert monolithic || (!monolithic && (enableDaemon || client));
2526stdenv.mkDerivation rec {
27 pname = "amule"
028 + lib.optionalString enableDaemon "-daemon"
29 + lib.optionalString client "-gui";
30 version = "2.3.3";
···53 "-DBUILD_DAEMON=${if enableDaemon then "ON" else "OFF"}"
54 "-DBUILD_REMOTEGUI=${if client then "ON" else "OFF"}"
55 "-DBUILD_WEBSERVER=${if httpServer then "ON" else "OFF"}"
00000056 ];
00005758 # aMule will try to `dlopen' libupnp and libixml, so help it
59 # find them.
···79 license = licenses.gpl2Plus;
80 maintainers = with maintainers; [ ];
81 platforms = platforms.unix;
82- # cmake fails: Cannot specify link libraries for target "wxWidgets::ADV" which is not built by this project.
83- broken = enableDaemon || stdenv.isDarwin;
84 };
85}
···21}:
2223# daemon and client are not build monolithic
24+assert monolithic || (!monolithic && (enableDaemon || client || httpServer));
2526stdenv.mkDerivation rec {
27 pname = "amule"
28+ + lib.optionalString httpServer "-web"
29 + lib.optionalString enableDaemon "-daemon"
30 + lib.optionalString client "-gui";
31 version = "2.3.3";
···54 "-DBUILD_DAEMON=${if enableDaemon then "ON" else "OFF"}"
55 "-DBUILD_REMOTEGUI=${if client then "ON" else "OFF"}"
56 "-DBUILD_WEBSERVER=${if httpServer then "ON" else "OFF"}"
57+ # building only the daemon fails when these are not set... this is
58+ # due to mistakes in the Amule cmake code, but it does not cause
59+ # extra code to be built...
60+ "-Dwx_NEED_GUI=ON"
61+ "-Dwx_NEED_ADV=ON"
62+ "-Dwx_NEED_NET=ON"
63 ];
64+65+ postPatch = ''
66+ echo "find_package(Threads)" >> cmake/options.cmake
67+ '';
6869 # aMule will try to `dlopen' libupnp and libixml, so help it
70 # find them.
···90 license = licenses.gpl2Plus;
91 maintainers = with maintainers; [ ];
92 platforms = platforms.unix;
93+ broken = stdenv.isDarwin;
094 };
95}