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