1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-23 07:26:54 +00:00
nixpkgs/pkgs/os-specific/linux/sysstat/default.nix
Frederik Rietdijk ed095a6965
Merge pull request #74666 from r-ryantm/auto-update/sysstat
sysstat: 12.1.7 -> 12.2.0
2020-02-05 10:44:59 +01:00

33 lines
982 B
Nix

{ stdenv, fetchurl, gettext, bzip2 }:
stdenv.mkDerivation rec {
name = "sysstat-12.2.0";
src = fetchurl {
url = "http://pagesperso-orange.fr/sebastien.godard/${name}.tar.xz";
sha256 = "0xc3983ccr0dwab1px2jhbgj86pfmmr29k7ggnwjwm1qigmriak1";
};
buildInputs = [ gettext ];
preConfigure = ''
export PATH_CP=$(type -tp cp)
export PATH_CHKCONFIG=/no-such-program
export BZIP=${bzip2.bin}/bin/bzip2
export SYSTEMCTL=systemctl
'';
makeFlags = [ "SYSCONFIG_DIR=$(out)/etc" "IGNORE_FILE_ATTRIBUTES=y" "CHOWN=true" ];
installTargets = [ "install_base" "install_nls" "install_man" ];
patches = [ ./install.patch ];
meta = {
homepage = http://sebastien.godard.pagesperso-orange.fr/;
description = "A collection of performance monitoring tools for Linux (such as sar, iostat and pidstat)";
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.eelco ];
};
}