mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 21:33:49 +00:00
de0bef17b3
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
41 lines
1.3 KiB
Nix
41 lines
1.3 KiB
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "bandwhich";
|
|
version = "unstable-2023-09-11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "imsnif";
|
|
repo = pname;
|
|
rev = "eba356220cc06254b96cd3241bc80ab7a0ab017b";
|
|
hash = "sha256-qrVGUbVbURXSKJy28mhpwVkzSGgct8PPOnwb0FdVWtE=";
|
|
};
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"packet-builder-0.7.0" = "sha256-KxNrnLZ/z3JJ3E1pCTJF9tNXI7XYNRc6ooTUz3avpjw=";
|
|
};
|
|
};
|
|
|
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
|
|
|
# 10 passed; 47 failed https://hydra.nixos.org/build/148943783/nixlog/1
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
meta = with lib; {
|
|
description = "A CLI utility for displaying current network utilization";
|
|
longDescription = ''
|
|
bandwhich sniffs a given network interface and records IP packet size, cross
|
|
referencing it with the /proc filesystem on linux or lsof on MacOS. It is
|
|
responsive to the terminal window size, displaying less info if there is
|
|
no room for it. It will also attempt to resolve ips to their host name in
|
|
the background using reverse DNS on a best effort basis.
|
|
'';
|
|
homepage = "https://github.com/imsnif/bandwhich";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ Br1ght0ne figsoda ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|