diff --git a/pkgs/top-level/release-lib.nix b/pkgs/top-level/release-lib.nix index 1f88684d6337..88d4e1fedd5a 100644 --- a/pkgs/top-level/release-lib.nix +++ b/pkgs/top-level/release-lib.nix @@ -57,7 +57,12 @@ rec { (pkgs.lib.getAttrFromPath path pkgs)); in testOnCross crossSystem job.systems getPkg); - setCrossMaintainers = pkg: pkg // { meta.maintainers = crossMaintainers; }; + setCrossMaintainers = pkg: + pkg // + { + meta = (if pkg ? meta then pkg.meta else {}) + // { maintainers = crossMaintainers; }; + }; /* Find all packages that have a meta.platforms field listing the supported platforms. */