Fix assertion failure in ‘nix-store --load-db’
Fix assertion failure in ‘nix-store --load-db’

Namely:

  nix-store: derivations.cc:242: nix::Hash nix::hashDerivationModulo(nix::StoreAPI&, nix::Derivation): Assertion `store.isValidPath(i->first)' failed.

This happened because of the derivation output correctness check being
applied before the references of a derivation are valid.

gebner/nix,wmertens/nix,shlevy/nix,rycee/nix,ehmry/nix,peti/nix,zimbatm/nix,joelmo/nix,garbas/nix,gridaphobe/nix,NixOS/nix,nbp/nix,offlinehacker/nix,ttuegel/nix,puffnfresh/nix,pikajude/nix,layus/nix,layus/nix,shlevy/nix,tchajed/nix,vcunat/nix,tchajed/nix,dtzWill/nix,ysangkok/nix,puffnfresh/nix,aucampia/nix,ehmry/nix,jcumming/nix,NixOS/nix,acowley/nix,layus/nix,NixOS/nix,garbas/nix,dezgeg/nix,bjornfor/nix,joelmo/nix,vizanto/nix,vizanto/nix,joelmo/nix,vcunat/nix,dezgeg/nix,ehmry/nix,wmertens/nix,jcumming/nix,shlevy/nix,rowhit/nix,gridaphobe/nix,pikajude/nix,dtzWill/nix,jcumming/nix,wmertens/nix,shlevy/nix,vcunat/nix,offlinehacker/nix,aucampia/nix,nbp/nix,shlevy/nix,acowley/nix,bjornfor/nix,NixOS/nix,garbas/nix,layus/nix,wmertens/nix,ehmry/nix,peti/nix,pikajude/nix,zimbatm/nix,rycee/nix,zimbatm/nix,rowhit/nix,zimbatm/nix,aucampia/nix,puffnfresh/nix,nbp/nix,bennofs/nix,bjornfor/nix,peti/nix,rycee/nix,vizanto/nix,bennofs/nix,bjornfor/nix,rowhit/nix,dezgeg/nix,ttuegel/nix,gebner/nix,jcumming/nix,dezgeg/nix,bennofs/nix,bennofs/nix,peti/nix,vcunat/nix,dezgeg/nix,NixOS/nix,gebner/nix,gebner/nix,rowhit/nix,ysangkok/nix,tchajed/nix,layus/nix,ttuegel/nix,acowley/nix,acowley/nix,peti/nix,offlinehacker/nix,vizanto/nix,dtzWill/nix,garbas/nix,ehmry/nix,joelmo/nix,rycee/nix,nbp/nix,ehmry/nix,tchajed/nix,offlinehacker/nix,ysangkok/nix,gridaphobe/nix,gridaphobe/nix,ttuegel/nix,puffnfresh/nix,dtzWill/nix,aucampia/nix,dtzWill/nix,garbas/nix,rycee/nix