at 23.05-pre 34 lines 1.0 kB view raw
1{ lib, stdenv, fetchurl, gettext, bzip2 }: 2 3stdenv.mkDerivation rec { 4 pname = "sysstat"; 5 version = "12.6.0"; 6 7 src = fetchurl { 8 url = "http://pagesperso-orange.fr/sebastien.godard/sysstat-${version}.tar.xz"; 9 sha256 = "sha256-aZ/ZSINtd/mtBUH9Xc91zSUF+dpOwU32aShq0EfCPZc="; 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 export COMPRESS_MANPG=n 20 ''; 21 22 makeFlags = [ "SYSCONFIG_DIR=$(out)/etc" "IGNORE_FILE_ATTRIBUTES=y" "CHOWN=true" ]; 23 installTargets = [ "install_base" "install_nls" "install_man" ]; 24 25 patches = [ ./install.patch ]; 26 27 meta = { 28 homepage = "http://sebastien.godard.pagesperso-orange.fr/"; 29 description = "A collection of performance monitoring tools for Linux (such as sar, iostat and pidstat)"; 30 license = lib.licenses.gpl2Plus; 31 platforms = lib.platforms.linux; 32 maintainers = [ lib.maintainers.eelco ]; 33 }; 34}