Files
nixpkgs/pkgs/by-name/ti/time/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1.6 KiB
Nix

{
lib,
stdenv,
fetchpatch,
fetchurl,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "time";
version = "1.9";
src = fetchurl {
url = "mirror://gnu/time/time-${finalAttrs.version}.tar.gz";
hash = "sha256-+6zwyB5iQp3z4zvaTO44dWYE8Y4B2XczjiMwaj47Uh4=";
};
patches = [
# fixes cross-compilation to riscv64-linux
./time-1.9-implicit-func-decl-clang.patch
# fix compilation with gcc15
(fetchpatch {
url = "https://src.fedoraproject.org/rpms/time/raw/191440912c2e9a63af87802e507ca3ccb923e805/f/time-1.9-Fix-compiling-with-GCC15.patch";
hash = "sha256-4Qp3mV8XuCmz518GPtrW52gyaPOb+97RE6FDPKNCyJw=";
})
];
meta = {
description = "Tool that runs programs and summarizes the system resources they use";
longDescription = ''
The `time' command runs another program, then displays
information about the resources used by that program, collected
by the system while the program was running. You can select
which information is reported and the format in which it is
shown, or have `time' save the information in a file instead of
displaying it on the screen.
The resources that `time' can report on fall into the general
categories of time, memory, and I/O and IPC calls. Some systems
do not provide much information about program resource use;
`time' reports unavailable information as zero values.
'';
license = lib.licenses.gpl3Plus;
homepage = "https://www.gnu.org/software/time/";
platforms = lib.platforms.unix;
mainProgram = "time";
};
})