nixpkgs/pkgs/tools/system/logrotate/default.nix

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

39 lines
981 B
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv, fetchFromGitHub, gzip, popt, autoreconfHook
2021-03-22 19:57:57 +00:00
, aclSupport ? true, acl
, nixosTests
}:
stdenv.mkDerivation rec {
pname = "logrotate";
2022-12-17 18:05:42 +00:00
version = "3.21.0";
src = fetchFromGitHub {
owner = "logrotate";
repo = "logrotate";
rev = version;
2022-12-17 18:05:42 +00:00
sha256 = "sha256-w86y6bz/nvH/0mIbn2XrSs5KdOM/xadnlZMQZp4LdGQ=";
};
# Logrotate wants to access the 'mail' program; to be done.
2021-02-17 13:16:22 +00:00
configureFlags = [
"--with-compress-command=${gzip}/bin/gzip"
"--with-uncompress-command=${gzip}/bin/gunzip"
];
nativeBuildInputs = [ autoreconfHook ];
2021-03-22 19:57:57 +00:00
buildInputs = [ popt ] ++ lib.optionals aclSupport [ acl ];
passthru.tests = {
nixos-logrotate = nixosTests.logrotate;
};
2021-02-17 13:16:22 +00:00
meta = with lib; {
homepage = "https://github.com/logrotate/logrotate";
description = "Rotates and compresses system logs";
2021-02-17 13:16:22 +00:00
license = licenses.gpl2Plus;
maintainers = [ maintainers.viric ];
platforms = platforms.all;
2023-11-27 01:17:53 +00:00
mainProgram = "logrotate";
};
}