on master help sign in
Merge pull request #591 from alexfmpe/fix-nonroot-ob

Fix creation of project shell at nonroot folders

commit032a769ebf053b3c3adb5fbfef9a85865f970d22 authorElliot Cameron <3noch@users.noreply.github.com> dateMon 23 Dec 2019, 11:58 (7 years ago) parent070cde885e3a83
1 file changed+1−1
lib/command/src/Obelisk/Command/Project.hs+1−1
lib/command/src/Obelisk/Command/Project.hs+1−1
@@ -245,7 +245,7 @@ inImpureProjectShell shellName command = withProjectRoot "." $ \root ->
245245projectShell :: MonadObelisk m => FilePath -> Bool -> String -> Maybe String -> m ()
246246projectShell root isPure shellName command = do
247247 let nixPath = $(staticWhich "nix")
248− nixpkgsPath <- fmap T.strip $ readProcessAndLogStderr Debug $ proc nixPath ["eval", "(import .obelisk/impl {}).nixpkgs.path"]
248+ nixpkgsPath <- fmap T.strip $ readProcessAndLogStderr Debug $ setCwd (Just root) $ proc nixPath ["eval", "(import .obelisk/impl {}).nixpkgs.path"]
249249 nixRemote <- liftIO $ lookupEnv "NIX_REMOTE"
250250 (_, _, _, ph) <- createProcess_ "runNixShellAttr" $ setCtlc $ setCwd (Just root) $ proc "nix-shell" $
251251 [ "default.nix"] <>