Any way to get a derivation's inputDrvs from within Nix?

I use something similar to this to ensure that my CI has all build time deps cached:
https://github.com/NixOS/nix/issues/1245#issuecomment-401642781

2 Likes