1 { lib, stdenv, fetchFromGitHub, gzip, popt, autoreconfHook
2 , aclSupport ? true, acl
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 sha256 = "sha256-D7E2mpC7v2kbsb1EyhR6hLvGbnIvGB2MK1n1gptYyKI=";
17 # Logrotate wants to access the 'mail' program; to be done.
19 "--with-compress-command=${gzip}/bin/gzip"
20 "--with-uncompress-command=${gzip}/bin/gunzip"
23 nativeBuildInputs = [ autoreconfHook ];
24 buildInputs = [ popt ] ++ lib.optionals aclSupport [ acl ];
27 nixos-logrotate = nixosTests.logrotate;
31 homepage = "https://github.com/logrotate/logrotate";
32 description = "Rotates and compresses system logs";
33 license = licenses.gpl2Plus;
34 maintainers = [ maintainers.tobim ];
35 platforms = platforms.all;
36 mainProgram = "logrotate";