pull down to refresh

If you have the patience for it, you should learn nix. You basically write a program that tells the program what version of all of its dependencies its going to use, but when the user uses nix to install a program it will typically (with the exception of the weird way some people have managed to get binary blobs to work with it) install everything from source, from the repo URL specified in the install program (the flake.nix file) and check that the hash matches the one specified in the nix install program.
I'm still learning it myself, but if you ping me (or others) on the nix discord server for help I or they will do their best to help you, but nix development shells are very helpful.
You can then install nix on debian (it won't conflict with apt because it doesn't install packages in the /bin folder) and go from there.