Nix is capable of that and I consider it golden standard right now, it also allows you do multiple things not related to "package management", such as configuration management, creating vms / docker images, cross-compiling, reproducible dev envs, deploying to AWS etc...