@@ -40,7 +40,7 @@ import System.IO.Temp
4040import System.IO.Unsafe (unsafePerformIO)
4141import System.Posix (FileStatus, FileMode, CMode (..), UserID, deviceID, fileID, fileMode, fileOwner, getFileStatus, getRealUserID)
4242import System.Posix.Files
43−import Text.ShellEscape (Bash, bytes, bash)
43+import Text.ShellEscape (bash, bytes)
4444
4545import GitHub.Data.GitData (Branch)
4646import GitHub.Data.Name (Name)
@@ -272,7 +272,7 @@ filePermissionIsSafe s umask = not fileWorldWritable && fileGroupWritable <= uma
272272 fileGroupWritable = fileMode s .&. 0o020 == 0o020
273273 umaskGroupWritable = umask .&. 0o020 == 0
274274
275−nixShellRunConfig :: MonadObelisk m => FilePath -> Bool -> Maybe [Bash] -> m NixShellConfig
275+nixShellRunConfig :: MonadObelisk m => FilePath -> Bool -> Maybe String -> m NixShellConfig
276276nixShellRunConfig root isPure command = do
277277 nixpkgsPath <- fmap T.strip $ readProcessAndLogStderr Debug $ setCwd (Just root) $
278278 proc nixExePath ["eval", "(import .obelisk/impl {}).nixpkgs.path"]
@@ -283,7 +283,7 @@ nixShellRunConfig root isPure command = do
283283 & nixShellConfig_run .~ (command <&> \cs -> unwords $ concat
284284 [ ["export", BSU.toString . bytes . bash $ "NIX_PATH=nixpkgs=" <> encodeUtf8 nixpkgsPath, ";"]
285285 , maybe [] (\v -> ["export", BSU.toString . bytes . bash $ "NIX_REMOTE=" <> encodeUtf8 (T.pack v), ";"]) nixRemote
286− , fmap (BSU.toString . bytes) cs
286+ , [cs]
287287 ])
288288
289289nixShellRunProc :: NixShellConfig -> ProcessSpec
@@ -296,7 +296,7 @@ nixShellWithoutPkgs
296296 -> Bool -- ^ Should we chdir to the package root in the shell?
297297 -> Map Text FilePath -- ^ Package names mapped to their paths
298298 -> String -- ^ Shell attribute to use (e.g. @"ghc"@, @"ghcjs"@, etc.)
299− -> Maybe [Bash] -- ^ If 'Just' run the given command; otherwise just open the interactive shell
299+ -> Maybe String -- ^ If 'Just' run the given command; otherwise just open the interactive shell
300300 -> m ()
301301nixShellWithoutPkgs root isPure chdirToRoot packageNamesAndPaths shellAttr command = do
302302 packageNamesAndAbsPaths <- liftIO $ for packageNamesAndPaths makeAbsolute
@@ -314,7 +314,7 @@ nixShellWithoutPkgs root isPure chdirToRoot packageNamesAndPaths shellAttr comma
314314 ]
315315 void $ waitForProcess ph
316316
317−nixShellWithHoogle :: MonadObelisk m => FilePath -> Bool -> String -> Maybe [Bash] -> m ()
317+nixShellWithHoogle :: MonadObelisk m => FilePath -> Bool -> String -> Maybe String -> m ()
318318nixShellWithHoogle root isPure shell' command = do
319319 defShellConfig <- nixShellRunConfig root isPure command
320320 (_, _, _, ph) <- createProcess_ "nixShellWithHoogle" $ setCwd (Just root) $ nixShellRunProc $ defShellConfig