meta.tests: rename into passthru.tests

Nix currently rejects derivations in `meta` values. This works around
that limitation by using `passthru` instead.

Closes https://github.com/NixOS/nixpkgs/issues/50230
This commit is contained in:
Léo Gaspard
2018-11-11 23:11:46 +09:00
parent cae5598611
commit 2986ce16a8
5 changed files with 20 additions and 14 deletions
+3 -6
View File
@@ -68,11 +68,8 @@ stdenv.mkDerivation rec {
description = "Open source IMAP and POP3 email server written with security primarily in mind";
maintainers = with stdenv.lib.maintainers; [ peti rickynils fpletz ];
platforms = stdenv.lib.platforms.unix;
# https://github.com/NixOS/nixpkgs/issues/50230 must be resolved before
# this can be enabled.
#
# tests = {
# opensmtpd-interaction = nixosTests.opensmtpd;
# };
};
passthru.tests = {
opensmtpd-interaction = nixosTests.opensmtpd;
};
}