programs: replace coreutils uptime with procps uptime
This commit is contained in:
@@ -117,6 +117,7 @@ in
|
||||
"unixtools.ps"
|
||||
"unixtools.sysctl"
|
||||
"unixtools.xxd"
|
||||
"uptime"
|
||||
"usbutils" # lsusb
|
||||
"util-linux" # lsblk, lscpu, etc
|
||||
"valgrind"
|
||||
|
@@ -207,6 +207,7 @@
|
||||
./tor-browser.nix
|
||||
./tuba.nix
|
||||
./unl0kr
|
||||
./uptime.nix
|
||||
./v4l-utils.nix
|
||||
./via.nix
|
||||
./video-trimmer.nix
|
||||
|
11
hosts/common/programs/uptime.nix
Normal file
11
hosts/common/programs/uptime.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
sane.programs.uptime = {
|
||||
# `uptime` is provided by one of:
|
||||
# - busybox
|
||||
# - coreutils (nixos default)
|
||||
# - procps
|
||||
# none of them are great, but procps at least supports `uptime --since`
|
||||
packageUnwrapped = pkgs.linkBinIntoOwnPackage pkgs.procps "uptime";
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user