diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2024-02-16 12:01:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 12:01:48 +0000 |
commit | 2c4c233475ba122ea7d2579924ce16e1e2cae299 (patch) | |
tree | 5afa12830508d8710c984c4dd5665cadee6a59ed /pkgs/tools/networking | |
parent | cc58770a4c6dab0aa59fb3a107b83117d4c276b5 (diff) | |
parent | 0ec5bef772dc12003df7a55f7be1f7b8809f8b48 (diff) | |
download | nixlib-2c4c233475ba122ea7d2579924ce16e1e2cae299.tar nixlib-2c4c233475ba122ea7d2579924ce16e1e2cae299.tar.gz nixlib-2c4c233475ba122ea7d2579924ce16e1e2cae299.tar.bz2 nixlib-2c4c233475ba122ea7d2579924ce16e1e2cae299.tar.lz nixlib-2c4c233475ba122ea7d2579924ce16e1e2cae299.tar.xz nixlib-2c4c233475ba122ea7d2579924ce16e1e2cae299.tar.zst nixlib-2c4c233475ba122ea7d2579924ce16e1e2cae299.zip |
Merge staging-next into staging
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r-- | pkgs/tools/networking/bandwhich/default.nix | 17 | ||||
-rw-r--r-- | pkgs/tools/networking/haproxy/default.nix | 4 |
2 files changed, 18 insertions, 3 deletions
diff --git a/pkgs/tools/networking/bandwhich/default.nix b/pkgs/tools/networking/bandwhich/default.nix index 50c58f43ce91..43da60ffb89d 100644 --- a/pkgs/tools/networking/bandwhich/default.nix +++ b/pkgs/tools/networking/bandwhich/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }: +{ lib, stdenv, fetchFromGitHub, rustPlatform, Security, installShellFiles }: rustPlatform.buildRustPackage rec { pname = "bandwhich"; @@ -23,11 +23,25 @@ rustPlatform.buildRustPackage rec { "--skip=tests::cases::ui::layout_under_50_width_under_50_height" ]; + nativeBuildInputs = [ installShellFiles ]; + buildInputs = lib.optional stdenv.isDarwin Security; # 10 passed; 47 failed https://hydra.nixos.org/build/148943783/nixlog/1 doCheck = !stdenv.isDarwin; + preConfigure = '' + export BANDWHICH_GEN_DIR=_shell-files + mkdir -p $BANDWHICH_GEN_DIR + ''; + + postInstall = '' + installManPage $BANDWHICH_GEN_DIR/bandwhich.1 + + installShellCompletion $BANDWHICH_GEN_DIR/bandwhich.{bash,fish} \ + --zsh $BANDWHICH_GEN_DIR/_bandwhich + ''; + meta = with lib; { description = "A CLI utility for displaying current network utilization"; longDescription = '' @@ -38,6 +52,7 @@ rustPlatform.buildRustPackage rec { the background using reverse DNS on a best effort basis. ''; homepage = "https://github.com/imsnif/bandwhich"; + changelog = "https://github.com/imsnif/bandwhich/blob/${src.rev}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ Br1ght0ne figsoda ]; platforms = platforms.unix; diff --git a/pkgs/tools/networking/haproxy/default.nix b/pkgs/tools/networking/haproxy/default.nix index ce275eca6783..675c7d19b65a 100644 --- a/pkgs/tools/networking/haproxy/default.nix +++ b/pkgs/tools/networking/haproxy/default.nix @@ -29,11 +29,11 @@ let sslPkg = sslPkgs.${sslLibrary}; in stdenv.mkDerivation (finalAttrs: { pname = "haproxy"; - version = "2.9.4"; + version = "2.9.5"; src = fetchurl { url = "https://www.haproxy.org/download/${lib.versions.majorMinor finalAttrs.version}/src/haproxy-${finalAttrs.version}.tar.gz"; - hash = "sha256-nDiSzDwISsTwASXvIqFRzxgUFthKqKN69q9qoDmQlrw="; + hash = "sha256-MreFsSiDj0IYuNVGkMhsSHlNA/gXy7Yn+0h2n3nv1Zs="; }; buildInputs = [ sslPkg zlib libxcrypt ] |