@@ -523,13 +523,12 @@ loadPackageIndex root = do
523523 liftIO $ getInstalledPackages Verbosity.silent compiler [GlobalPackageDB] programDb
524524 where
525525 getPathInNixEnvironment cmd = do
526− procSpec <- runProc <$> nixShellRunConfig root True (Just cmd)
527− (_,Just h,_,_) <- createProcess_ "loadPackageIndex" procSpec
526+ (_,Just h,_,_) <- createProcess_ "loadPackageIndex" $ procSpec cmd
528527 path <- liftIO $ hGetLine h >>= canonicalizePath
529528 liftIO $ hClose h
530529 pure path
531− runProc =
532− overCreateProcess (\cs -> cs { std_out = CreatePipe }) . nixShellRunProc
530+ procSpec =
531+ overCreateProcess (\cs -> cs { std_out = CreatePipe }) . obShellRunProc root
533532
534533baseGhciOptions :: [String]
535534baseGhciOptions =