summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2022-02-23 11:24:17 +0100
committerGitHub <noreply@github.com>2022-02-23 11:24:17 +0100
commite5823f77b3c8c4058bcea9634156769635f8b61e (patch)
tree5797cb6c02cd88b22a644e37443f1c4635ac120d /pkgs/tools/system
parent14780ccf6a68cd4178c21e0a3dfed63ddd9b020a (diff)
parenta05f1c9f9357d3c3c39b99a5aa020399ee28bb99 (diff)
downloadnixpkgs-e5823f77b3c8c4058bcea9634156769635f8b61e.tar
nixpkgs-e5823f77b3c8c4058bcea9634156769635f8b61e.tar.gz
nixpkgs-e5823f77b3c8c4058bcea9634156769635f8b61e.tar.bz2
nixpkgs-e5823f77b3c8c4058bcea9634156769635f8b61e.tar.lz
nixpkgs-e5823f77b3c8c4058bcea9634156769635f8b61e.tar.xz
nixpkgs-e5823f77b3c8c4058bcea9634156769635f8b61e.tar.zst
nixpkgs-e5823f77b3c8c4058bcea9634156769635f8b61e.zip
Merge pull request #159187 from martinetd/logrotate
logrotate service enhancements
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/logrotate/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/system/logrotate/default.nix b/pkgs/tools/system/logrotate/default.nix
index 97d920ce918..f0ce0838335 100644
--- a/pkgs/tools/system/logrotate/default.nix
+++ b/pkgs/tools/system/logrotate/default.nix
@@ -1,6 +1,7 @@
 { lib, stdenv, fetchFromGitHub, gzip, popt, autoreconfHook
 , mailutils ? null
 , aclSupport ? true, acl
+, nixosTests
 }:
 
 stdenv.mkDerivation rec {
@@ -25,6 +26,10 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ autoreconfHook ];
   buildInputs = [ popt ] ++ lib.optionals aclSupport [ acl ];
 
+  passthru.tests = {
+    nixos-logrotate = nixosTests.logrotate;
+  };
+
   meta = with lib; {
     homepage = "https://github.com/logrotate/logrotate";
     description = "Rotates and compresses system logs";