1{ stdenv, fetchurl, gettext, bzip2 }:
2
3stdenv.mkDerivation rec {
4 name = "sysstat-11.0.7";
5
6 src = fetchurl {
7 url = "http://perso.orange.fr/sebastien.godard/${name}.tar.xz";
8 sha256 = "12j55rdx1hyhsc5qm0anx9h9siaa58lhh9dchp40q4ag2wxamp1r";
9 };
10
11 buildInputs = [ gettext ];
12
13 preConfigure = ''
14 export PATH_CP=$(type -tp cp)
15 export PATH_CHKCONFIG=/no-such-program
16 export BZIP=${bzip2}/bin/bzip2
17 export SYSTEMCTL=systemctl
18 '';
19
20 makeFlags = "SYSCONFIG_DIR=$(out)/etc IGNORE_MAN_GROUP=y CHOWN=true";
21 installTargets = "install_base install_nls install_man";
22
23 patches = [ ./install.patch ];
24
25 meta = {
26 homepage = http://sebastien.godard.pagesperso-orange.fr/;
27 description = "A collection of performance monitoring tools for Linux (such as sar, iostat and pidstat)";
28 license = stdenv.lib.licenses.gpl2Plus;
29 platforms = stdenv.lib.platforms.linux;
30 maintainers = [ stdenv.lib.maintainers.eelco ];
31 };
32}