about summary refs log tree commit diff
path: root/pkgs/tools/system/rsyslog
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2020-02-06 22:04:45 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2020-02-06 22:04:45 +0100
commit13b0a6eaf1b6bd2026c9c9b8249db23aa1af50d5 (patch)
tree478cc4e8e40babd4984e56d7812253ccb9e50df5 /pkgs/tools/system/rsyslog
parent8f584be88642a29db3ef63be34aaa1b2353e004a (diff)
rsyslog: add nixos tests to passthru.tests
ofborg does not build them yet, but at least nixpkgs-update does.
https://github.com/ryantm/nixpkgs-update/pull/118
Note this test passes and would not have detected
https://github.com/NixOS/nixpkgs/issues/79304
Diffstat (limited to 'pkgs/tools/system/rsyslog')
-rw-r--r--pkgs/tools/system/rsyslog/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/system/rsyslog/default.nix b/pkgs/tools/system/rsyslog/default.nix
index 83f9eaff9774b..0dcde2b1e330c 100644
--- a/pkgs/tools/system/rsyslog/default.nix
+++ b/pkgs/tools/system/rsyslog/default.nix
@@ -5,6 +5,7 @@
 , liblogging ? null, libnet ? null, hadoop ? null, rdkafka ? null
 , libmongo-client ? null, czmq ? null, rabbitmq-c ? null, hiredis ? null, mongoc ? null
 , libmaxminddb ? null
+, nixosTests ? null
 }:
 
 with stdenv.lib;
@@ -103,6 +104,10 @@ stdenv.mkDerivation rec {
     (mkFlag true                      "generate-man-pages")
   ];
 
+  passthru.tests = {
+    nixos-rsyslogd = nixosTests.rsyslogd;
+  };
+
   meta = {
     homepage = https://www.rsyslog.com/;
     description = "Enhanced syslog implementation";