(cherry picked from commit 69b661db22e4b16fb08d322f5fede480438e2b71)
nix_store_open
nix_state_create
lookupPath