programs: replace coreutils uptime with procps uptime

This commit is contained in:
2025-05-27 03:22:59 +00:00
parent ec5bf7cc1f
commit c4cdf5ee72
3 changed files with 13 additions and 0 deletions

View File

@@ -117,6 +117,7 @@ in
"unixtools.ps" "unixtools.ps"
"unixtools.sysctl" "unixtools.sysctl"
"unixtools.xxd" "unixtools.xxd"
"uptime"
"usbutils" # lsusb "usbutils" # lsusb
"util-linux" # lsblk, lscpu, etc "util-linux" # lsblk, lscpu, etc
"valgrind" "valgrind"

View File

@@ -207,6 +207,7 @@
./tor-browser.nix ./tor-browser.nix
./tuba.nix ./tuba.nix
./unl0kr ./unl0kr
./uptime.nix
./v4l-utils.nix ./v4l-utils.nix
./via.nix ./via.nix
./video-trimmer.nix ./video-trimmer.nix

View 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";
};
}