From de55e7313fe2778b27a3f46da4911d5b6e55db28 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Wed, 28 Feb 2024 17:15:21 +0100 Subject: [PATCH] nixops_unstable_minimal.tests.withAPlugin: init This way ofborg will do a better job if we only specify nixops_unstable as a prefix. --- pkgs/applications/networking/cluster/nixops/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/cluster/nixops/default.nix b/pkgs/applications/networking/cluster/nixops/default.nix index 7b3383e6e3ea..e6a8a69cc4c7 100644 --- a/pkgs/applications/networking/cluster/nixops/default.nix +++ b/pkgs/applications/networking/cluster/nixops/default.nix @@ -1,4 +1,4 @@ -{ python3 }: +{ lib, python3 }: let python = python3.override { @@ -47,6 +47,12 @@ let nixos = old.passthru.tests.nixos.passthru.override { nixopsPkg = r; }; + } + # Make sure we also test with a configuration that's been extended with a plugin. + // lib.optionalAttrs (selectedPlugins == []) { + withAPlugin = + lib.recurseIntoAttrs + (withPlugins (ps: with ps; [ nixops-encrypted-links ])).tests; }; }; }));