mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
43 lines
1.0 KiB
Nix
43 lines
1.0 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, gettext
|
|
, bzip2
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sysstat";
|
|
version = "12.7.4";
|
|
|
|
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 = {
|
|
mainProgram = "iostat";
|
|
homepage = "http://sebastien.godard.pagesperso-orange.fr/";
|
|
description = "Collection of performance monitoring tools for Linux (such as sar, iostat and pidstat)";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ lib.maintainers.hensoko ];
|
|
};
|
|
}
|