nixpkgs-suyu/pkgs/os-specific/linux/sysstat/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1,022 B
Nix
Raw Normal View History

2021-01-15 15:45:37 +01:00
{ lib, stdenv, fetchurl, gettext, bzip2 }:
2015-09-28 15:46:24 +02:00
stdenv.mkDerivation rec {
pname = "sysstat";
2022-03-07 17:29:09 +01:00
version = "12.4.5";
src = fetchurl {
url = "http://pagesperso-orange.fr/sebastien.godard/sysstat-${version}.tar.xz";
2022-03-07 17:29:09 +01:00
sha256 = "sha256-70RazqMBu7mW5BCEL2KQqNBJ6ITUhoz+9+hdwEt+7ls=";
};
buildInputs = [ gettext ];
preConfigure = ''
export PATH_CP=$(type -tp cp)
export PATH_CHKCONFIG=/no-such-program
export BZIP=${bzip2.bin}/bin/bzip2
export SYSTEMCTL=systemctl
export COMPRESS_MANPG=n
'';
makeFlags = [ "SYSCONFIG_DIR=$(out)/etc" "IGNORE_FILE_ATTRIBUTES=y" "CHOWN=true" ];
installTargets = [ "install_base" "install_nls" "install_man" ];
patches = [ ./install.patch ];
meta = {
2020-02-25 01:31:30 +01:00
homepage = "http://sebastien.godard.pagesperso-orange.fr/";
description = "A collection of performance monitoring tools for Linux (such as sar, iostat and pidstat)";
2021-01-15 15:45:37 +01:00
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.eelco ];
};
}