@@ -22,13 +22,14 @@ import System.Directory
2222import System.FilePath
2323import System.Posix (FileStatus, UserID, deviceID, fileID, fileMode, fileOwner, getFileStatus, getRealUserID)
2424import System.Posix.Files
25−import System.Process (CreateProcess, callProcess, createProcess_, cwd, proc, waitForProcess)
25+import System.Process (CreateProcess, createProcess_, cwd, proc, waitForProcess)
2626
2727import GitHub.Data.GitData (Branch)
2828import GitHub.Data.Name (Name)
2929
3030import Obelisk.Command.CLI (failWith, putError, withSpinner)
3131import Obelisk.Command.Thunk
32+import Obelisk.Command.Utils (cp)
3233
3334--TODO: Make this module resilient to random exceptions
3435
@@ -69,7 +70,7 @@ initProject source = do
6970 --TODO: We should probably handoff to the impl here
7071 skeleton <- nixBuildAttrWithCache implDir "skeleton" --TODO: I don't think there's actually any reason to cache this
7172 withSpinner "Copying project skeleton ..." (Just "Copied project skeleton.") $ do
72− callProcess "cp" --TODO: Make this package depend on nix-prefetch-url properly
73+ cp --TODO: Make this package depend on nix-prefetch-url properly
7374 [ "-r"
7475 , "--no-preserve=mode"
7576 , "-T"
@@ -180,4 +181,4 @@ projectShell root isPure shellName command = do
180181 void $ waitForProcess ph
181182
182183setCwd :: Maybe FilePath -> CreateProcess -> CreateProcess
183−setCwd fp cp = cp { cwd = fp }
184+setCwd fp cfg = cfg { cwd = fp }