git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #31392 from lsix/update_time

time: 1.7 -> 1.8

commitf24364cb6b9dc0bc449704e10ff7002c31b35607 authorOrivej Desh <orivej@gmx.fr> dateThu 9 Nov 2017, 14:35 (9 years ago) parent3d8be08a0c9173
2 files changed+6−23
pkgs/tools/misc/time/default.nix+6−7 pkgs/tools/misc/time/max-resident.patch−16
pkgs/tools/misc/time/default.nix+6−7
@@ -1,15 +1,14 @@
11{stdenv, fetchurl}:
22
3−stdenv.mkDerivation {
4− name = "time-1.7";
3+stdenv.mkDerivation rec {
4+ name = "time-${version}";
5+ version = "1.8";
56
67 src = fetchurl {
7− url = mirror://gnu/time/time-1.7.tar.gz;
8− sha256 = "0va9063fcn7xykv658v2s9gilj2fq4rcdxx2mn2mmy1v4ndafzp3";
8+ url = "mirror://gnu/time/${name}.tar.gz";
9+ sha256 = "06rfg8dn0q2r8pdq8i6brrs6rqrsgvkwbbl4kfx3a6lnal0m8bwa";
910 };
1011
11− patches = [ ./max-resident.patch ];
12−
1312 meta = {
1413 description = "Tool that runs programs and summarizes the system resources they use";
1514
@@ -27,7 +26,7 @@ stdenv.mkDerivation {
2726 `time' reports unavailable information as zero values.
2827 '';
2928
30− license = stdenv.lib.licenses.gpl2Plus;
29+ license = stdenv.lib.licenses.gpl3Plus;
3130 homepage = http://www.gnu.org/software/time/;
3231 platforms = stdenv.lib.platforms.unix;
3332 };
pkgs/tools/misc/time/max-resident.patchdeleted−16
@@ -1,16 +0,0 @@
1−Fix the "max resident" size reported by ‘time’ being off by a factor of 4.
2−
3−From http://lists.gnu.org/archive/html/help-gnu-utils/2010-10/msg00002.html
4−
5−diff -ru -x '*~' time-1.7-orig/time.c time-1.7/time.c
6−--- time-1.7-orig/time.c 1996-06-13 15:38:21.000000000 -0400
7−+++ time-1.7/time.c 2011-10-31 10:40:27.000000000 -0400
8−@@ -392,7 +392,7 @@
9− ptok ((UL) resp->ru.ru_ixrss) / MSEC_TO_TICKS (v));
10− break;
11− case 'M': /* Maximum resident set size. */
12−- fprintf (fp, "%lu", ptok ((UL) resp->ru.ru_maxrss));
13−+ fprintf (fp, "%lu", (UL) resp->ru.ru_maxrss);
14− break;
15− case 'O': /* Outputs. */
16− fprintf (fp, "%ld", resp->ru.ru_oublock);