diff --git a/lib/command/src/Obelisk/Command/Project.hs b/lib/command/src/Obelisk/Command/Project.hs index e676ec2f2..e52a13297 100644 --- a/lib/command/src/Obelisk/Command/Project.hs +++ b/lib/command/src/Obelisk/Command/Project.hs @@ -245,7 +245,7 @@ inImpureProjectShell shellName command = withProjectRoot "." $ \root -> projectShell :: MonadObelisk m => FilePath -> Bool -> String -> Maybe String -> m () projectShell root isPure shellName command = do let nixPath = $(staticWhich "nix") - nixpkgsPath <- fmap T.strip $ readProcessAndLogStderr Debug $ proc nixPath ["eval", "(import .obelisk/impl {}).nixpkgs.path"] + nixpkgsPath <- fmap T.strip $ readProcessAndLogStderr Debug $ setCwd (Just root) $ proc nixPath ["eval", "(import .obelisk/impl {}).nixpkgs.path"] nixRemote <- liftIO $ lookupEnv "NIX_REMOTE" (_, _, _, ph) <- createProcess_ "runNixShellAttr" $ setCtlc $ setCwd (Just root) $ proc "nix-shell" $ [ "default.nix"] <>