Here is an example. I just wrote it now, so don't expect to have much sense, but from community-list perspective I think you'll understand the configuration.
router bgp 100
no synchronization
bgp log-neighbor-changes
neighbor 2001::1 remote-as 200
no neighbor 2001::1 activate
no auto-summary
!
address-family ipv6
neighbor 2001::1 activate
neighbor 2001::1 route-map TO-IN in
!
route-map TO-IN permit 10
match community 100
set ipv6 next-hop 2001::2
!
ip community-list 100 permit 65000
HTH
Calin