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

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

42 lines
1 KiB
Nix
Raw Normal View History

2023-08-12 18:26:53 +00:00
{ lib
, stdenv
, fetchFromGitHub
, gettext
, bzip2
}:
2015-09-28 13:46:24 +00:00
stdenv.mkDerivation rec {
pname = "sysstat";
2023-08-12 18:26:53 +00:00
version = "12.7.4";
2023-08-12 18:26:53 +00:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-ELmSzWnJ8vGwGPwY/5MFp/2gQhMXMjNG4bHtCplfQSc=";
};
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 00:31:30 +00: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 14:45:37 +00:00
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.eelco ];
};
}