@@ -93,7 +93,7 @@ profile profileBasePattern rtsFlags = withProjectRoot "." $ \root -> do
9393
9494 liftIO $ createDirectoryIfMissing False $ takeDirectory profileBaseName
9595
96− exePath <- nixCmd $ NixCmd_Build $ def
96+ outPath <- nixCmd $ NixCmd_Build $ def
9797 & nixBuildConfig_outLink .~ OutLink_None
9898 & nixCmdConfig_target .~ Target
9999 { _target_path = Just "."
@@ -102,7 +102,7 @@ profile profileBasePattern rtsFlags = withProjectRoot "." $ \root -> do
102102 assets <- findProjectAssets root
103103 putLog Debug $ "Assets impurely loaded from: " <> assets
104104 freePort <- getFreePort
105− (_, _, _, ph) <- createProcess_ "runProfExe" $ setCwd (Just root) $ setDelegateCtlc True $ proc exePath $
105+ (_, _, _, ph) <- createProcess_ "runProfExe" $ setCwd (Just root) $ setDelegateCtlc True $ proc (outPath </> "bin" </> "ob-run") $
106106 [ show freePort
107107 , T.unpack assets
108108 , profileBaseName