Skip to content

Commit

Permalink
Fix creation of project shell at nonroot folders
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfmpe committed Dec 23, 2019
1 parent 070cde8 commit 85e3a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/command/src/Obelisk/Command/Project.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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"] <>
Expand Down

0 comments on commit 85e3a83

Please sign in to comment.