
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-build a08b3a4d19
.tar.gz \
--argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
result/bin/apply-formatting $NIXPKGS_PATH
42 lines
1.3 KiB
Nix
42 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
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
|
|
];
|
|
|
|
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";
|
|
};
|
|
})
|