nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 57 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 gettext, 6 bzip2, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "sysstat"; 11 version = "12.7.7"; 12 13 src = fetchFromGitHub { 14 owner = "sysstat"; 15 repo = "sysstat"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-A0ja5/AtRNaXRXCXG2sJsvWrHPePgIIy/+rF+F7RvqI="; 18 }; 19 20 buildInputs = [ gettext ]; 21 22 preConfigure = '' 23 export PATH_CP=$(type -tp cp) 24 export PATH_CHKCONFIG=/no-such-program 25 export BZIP=${bzip2.bin}/bin/bzip2 26 export SYSTEMCTL=systemctl 27 export COMPRESS_MANPG=n 28 ''; 29 30 makeFlags = [ 31 "SYSCONFIG_DIR=$(out)/etc" 32 "IGNORE_FILE_ATTRIBUTES=y" 33 "CHOWN=true" 34 ]; 35 installTargets = [ 36 "install_base" 37 "install_nls" 38 "install_man" 39 ]; 40 41 outputs = [ 42 "out" 43 "man" 44 "doc" 45 ]; 46 47 patches = [ ./install.patch ]; 48 49 meta = { 50 mainProgram = "iostat"; 51 homepage = "https://sysstat.github.io/"; 52 description = "Collection of performance monitoring tools for Linux (such as sar, iostat and pidstat)"; 53 license = lib.licenses.gpl2Plus; 54 platforms = lib.platforms.linux; 55 maintainers = [ lib.maintainers.hensoko ]; 56 }; 57})