diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-02-17 21:06:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-17 21:06:50 +0100 |
commit | d0dd6b13b7abe160741cf5c65754df3b90226fdb (patch) | |
tree | e2c596f366906f2ecaa77b0e90087e74eacfeb20 /pkgs/tools/system | |
parent | 10bf65f15f228ef550b69f3bf6d59441a284cf34 (diff) | |
parent | 6cebd9e1508a7e420739737daa2558dca97a50d2 (diff) |
Merge pull request #113400 from aanderse/logrotate
logrotate: minor cleanup
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r-- | pkgs/tools/system/logrotate/default.nix | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/pkgs/tools/system/logrotate/default.nix b/pkgs/tools/system/logrotate/default.nix index 513b48c66304e..e91cd6da6b97e 100644 --- a/pkgs/tools/system/logrotate/default.nix +++ b/pkgs/tools/system/logrotate/default.nix @@ -14,27 +14,21 @@ stdenv.mkDerivation rec { }; # Logrotate wants to access the 'mail' program; to be done. - patchPhase = '' - sed -i -e 's,[a-z/]\+gzip,${gzip}/bin/gzip,' \ - -e 's,[a-z/]\+gunzip,${gzip}/bin/gunzip,' configure.ac - - ${lib.optionalString (mailutils != null) '' - sed -i -e 's,[a-z/]\+mail,${mailutils}/bin/mail,' configure.ac - ''} - ''; - - autoreconfPhase = '' - ./autogen.sh - ''; + configureFlags = [ + "--with-compress-command=${gzip}/bin/gzip" + "--with-uncompress-command=${gzip}/bin/gunzip" + ] ++ lib.optionals (mailutils != null) [ + "--with-default-mail-command=${mailutils}/bin/mail" + ]; nativeBuildInputs = [ autoreconfHook ]; buildInputs = [ popt ]; - meta = { + meta = with lib; { homepage = "https://fedorahosted.org/releases/l/o/logrotate/"; description = "Rotates and compresses system logs"; - license = lib.licenses.gpl2Plus; - maintainers = [ lib.maintainers.viric ]; - platforms = lib.platforms.all; + license = licenses.gpl2Plus; + maintainers = [ maintainers.viric ]; + platforms = platforms.all; }; } |