diff --git a/pkgs/applications/virtualization/docker/default.nix b/pkgs/applications/virtualization/docker/default.nix index 6c3347b24e9b..36afd5bedcdf 100644 --- a/pkgs/applications/virtualization/docker/default.nix +++ b/pkgs/applications/virtualization/docker/default.nix @@ -269,7 +269,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 = docker-meta // {