summaryrefslogtreecommitdiffstats
path: root/pkgs/top-level/unix-tools.nix
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-07-08 16:09:25 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2018-07-09 11:59:55 -0400
commit8ab5cc32025744d15747b96be373a066504784aa (patch)
tree9c14571996c3d33bbe8a391951f93d6cc64fed2e /pkgs/top-level/unix-tools.nix
parentf4c4a4cc1bcdf163be1c54ee477624f51574136c (diff)
unixtools: add watch command
Diffstat (limited to 'pkgs/top-level/unix-tools.nix')
-rw-r--r--pkgs/top-level/unix-tools.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/top-level/unix-tools.nix b/pkgs/top-level/unix-tools.nix
index cc6a8e0592a8..f92e90fed772 100644
--- a/pkgs/top-level/unix-tools.nix
+++ b/pkgs/top-level/unix-tools.nix
@@ -148,6 +148,13 @@ let
wall = {
linux = pkgs.utillinux;
};
+ watch = {
+ linux = pkgs.procps;
+
+ # watch is the only command from procps that builds currently on
+ # Darwin. Unfortunately no other implementations exist currently!
+ darwin = pkgs.callPackage ../os-specific/linux/procps-ng {};
+ };
write = {
linux = pkgs.utillinux;
darwin = pkgs.darwin.basic_cmds;
@@ -166,7 +173,7 @@ let
# Compatibility derivations
# Provided for old usage of these commands.
compat = with bins; lib.mapAttrs makeCompat {
- procps = [ ps sysctl top ];
+ procps = [ ps sysctl top watch ];
utillinux = [ fsck fdisk getopt hexdump mount
script umount whereis write col ];
nettools = [ arp hostname ifconfig netstat route ];