How to get a missing .drv file for a derivation from nixpkgs?

Wonder if --deriver uses local DB or cache.nixos.org DB. Can you try method described in Introspect nix-shell? - #2 by danbst ?