mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-15 09:23:37 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
61 lines
1.6 KiB
Nix
61 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
autoreconfHook,
|
|
fetchurl,
|
|
fetchpatch,
|
|
ncurses,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bwm-ng";
|
|
version = "0.6.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.gropp.org/bwm-ng/${pname}-${version}.tar.gz";
|
|
sha256 = "0ikzyvnb73msm9n7ripg1dsw9av1i0c7q2hi2173xsj8zyv559f1";
|
|
};
|
|
|
|
patches = [
|
|
# Pull upstream fix for ncurses-6.3 support.
|
|
(fetchpatch {
|
|
name = "ncurses-6.3.patch";
|
|
url = "https://github.com/vgropp/bwm-ng/commit/6a2087db6cc7ac5b5f667fcd17c262c079e8dcf2.patch";
|
|
sha256 = "1l5dii9d52v0x0sq458ybw7m9p8aan2vl94gwx5s8mgxsnbcmzzx";
|
|
# accidentally committed changes
|
|
excludes = [
|
|
"config.h.in~"
|
|
"configure.in"
|
|
"configure~"
|
|
];
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
];
|
|
|
|
buildInputs = [
|
|
ncurses
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Small and simple console-based live network and disk io bandwidth monitor";
|
|
mainProgram = "bwm-ng";
|
|
homepage = "http://www.gropp.org/?id=projects&sub=bwm-ng";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = [ ];
|
|
longDescription = ''
|
|
bwm-ng supports:
|
|
- /proc/net/dev, netstat, getifaddr, sysctl, kstat, /proc/diskstats /proc/partitions, IOKit,
|
|
devstat and libstatgrab
|
|
- unlimited number of interfaces/devices
|
|
- interfaces/devices are added or removed dynamically from list
|
|
- white-/blacklist of interfaces/devices
|
|
- output of KB/s, Kb/s, packets, errors, average, max and total sum
|
|
- output in curses, plain console, CSV or HTML
|
|
'';
|
|
};
|
|
}
|