iperf3: patch to exit with 0 on SIGTERM

I.e. stop service cleanly under systemd. Will be part of the next
release.

+17 -7
+17 -7
pkgs/tools/networking/iperf/3.nix
··· 24 24 "man" 25 25 ]; 26 26 27 - patches = lib.optionals stdenv.hostPlatform.isMusl [ 28 - (fetchpatch { 29 - url = "https://git.alpinelinux.org/aports/plain/main/iperf3/remove-pg-flags.patch?id=7f979fc51ae31d5c695d8481ba84a4afc5080efb"; 30 - name = "remove-pg-flags.patch"; 31 - sha256 = "0z3zsmf7ln08rg1mmzl8s8jm5gp8x62f5cxiqcmi8dcs2nsxwgbi"; 32 - }) 33 - ]; 27 + patches = 28 + [ 29 + # Patch to exit with 0 on SIGTERM, i.e. stop service cleanly under 30 + # systemd. Will be part of the next release. 31 + (fetchpatch { 32 + url = "https://github.com/esnet/iperf/commit/4bab9bc39d08069976c519868fefa11c35f6c3f0.patch"; 33 + name = "exit-with-0-on-sigterm.patch"; 34 + hash = "sha256-klW5UzPckJuZ/1Lx0hXJkGK+NyaqSn5AndBT4P+uajw="; 35 + }) 36 + ] 37 + ++ lib.optionals stdenv.hostPlatform.isMusl [ 38 + (fetchpatch { 39 + url = "https://git.alpinelinux.org/aports/plain/main/iperf3/remove-pg-flags.patch?id=7f979fc51ae31d5c695d8481ba84a4afc5080efb"; 40 + name = "remove-pg-flags.patch"; 41 + sha256 = "0z3zsmf7ln08rg1mmzl8s8jm5gp8x62f5cxiqcmi8dcs2nsxwgbi"; 42 + }) 43 + ]; 34 44 35 45 postInstall = '' 36 46 ln -s $out/bin/iperf3 $out/bin/iperf