From 7a30dd25fcbba6af9cb0bdb47eeb65bccc80ed09 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Wed, 17 Nov 2021 16:11:08 +0100 Subject: [PATCH] zookeeper: Add tests.nixos --- pkgs/servers/zookeeper/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/zookeeper/default.nix b/pkgs/servers/zookeeper/default.nix index 78ee5c34007b..f00c749557f1 100644 --- a/pkgs/servers/zookeeper/default.nix +++ b/pkgs/servers/zookeeper/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, jdk11_headless, makeWrapper, bash, coreutils }: +{ lib, stdenv, fetchurl, jdk11_headless, makeWrapper, nixosTests, bash, coreutils }: let # Latest supported LTS JDK for Zookeeper 3.6: # https://zookeeper.apache.org/doc/r3.6.3/zookeeperAdmin.html#sc_requiredSoftware @@ -37,6 +37,10 @@ stdenv.mkDerivation rec { runHook postInstall ''; + passthru.tests = { + nixos = nixosTests.zookeeper; + }; + meta = with lib; { homepage = "https://zookeeper.apache.org"; description = "Apache Zookeeper";