Noob packaging software for nix problem

I’m trying to package simplex-chat for nixpkgs in this PR: https://github.com/NixOS/nixpkgs/pull/273238, but CI gives me this cryptic error error: path '/nix/store/vkdrajkkggmc3qhji8b73p92yxrp6cd1-cabal2nix-simplex-chat.drv' is not valid (https://github.com/NixOS/nixpkgs/actions/runs/7159960464/job/19493797293?pr=273238).

The package builds locally with nix-build /path/to/nixpkgs -A simplex-chat and I can install it with nix-env -f /path/to/nixpkgs -iA simplex-chat.

What could the problem be?