@@ -67,7 +67,7 @@ import Obelisk.App (MonadObelisk, runObelisk, getObelisk)
6767import Obelisk.CliApp
6868import Obelisk.Command.Nix
6969import Obelisk.Command.Thunk
70−import Obelisk.Command.Utils (nixBuildExePath, nixExePath, toNixPath, cp, nixShellPath)
70+import Obelisk.Command.Utils (nixBuildExePath, nixExePath, toNixPath, cp, nixShellPath, lnPath)
7171
7272--TODO: Make this module resilient to random exceptions
7373
@@ -381,8 +381,12 @@ findProjectAssets root = do
381381 (readProcessAndLogStderr Debug)
382382 root
383383 pure (AssetSource_Derivation, T.pack $ root </> "static.out")
384− else fmap (AssetSource_Files,) $ readProcessAndLogStderr Debug $ setCwd (Just root) $
385− proc nixExePath ["eval", "-f", ".", "passthru.staticFilesImpure", "--raw"]
384+ else fmap (AssetSource_Files,) $ do
385+ path <- readProcessAndLogStderr Debug $ setCwd (Just root) $
386+ proc nixExePath ["eval", "-f", ".", "passthru.staticFilesImpure", "--raw"]
387+ _ <- readProcessAndLogStderr Debug $ setCwd (Just root) $
388+ proc lnPath ["-s", "-f", T.unpack path, "static.out"]
389+ pure path
386390
387391-- | Get the nix store path to the generated static asset manifest module (e.g., "obelisk-generated-static")
388392getHaskellManifestProjectPath :: MonadObelisk m => FilePath -> m Text