diff --git a/pkgs/applications/virtualization/docker/default.nix b/pkgs/applications/virtualization/docker/default.nix index 1ffa016159aa..e18f8dab8475 100644 --- a/pkgs/applications/virtualization/docker/default.nix +++ b/pkgs/applications/virtualization/docker/default.nix @@ -254,7 +254,7 @@ rec { passthru = { # Exposed for tarsum build on non-linux systems (build-support/docker/default.nix) inherit moby-src; - tests = lib.optionals (!clientOnly) { inherit (nixosTests) docker; }; + tests = lib.optionalAttrs (!clientOnly) { inherit (nixosTests) docker; }; }; meta = with lib; {