@@ -70,7 +70,7 @@ import Obelisk.App (MonadObelisk, runObelisk, getObelisk)
7070import Obelisk.CliApp
7171import Obelisk.Command.Nix
7272import Obelisk.Command.Thunk
73−import Obelisk.Command.Utils (nixBuildExePath, nixExePath, toNixPath, cp, nixShellPath)
73+import Obelisk.Command.Utils (nixBuildExePath, nixExePath, toNixPath, cp, nixShellPath, lnPath)
7474
7575--TODO: Make this module resilient to random exceptions
7676
@@ -384,8 +384,12 @@ findProjectAssets root = do
384384 (readProcessAndLogStderr Debug)
385385 root
386386 pure (AssetSource_Derivation, T.pack $ root </> "static.out")
387− else fmap (AssetSource_Files,) $ readProcessAndLogStderr Debug $ setCwd (Just root) $
388− proc nixExePath ["eval", "-f", ".", "passthru.staticFilesImpure", "--raw"]
387+ else fmap (AssetSource_Files,) $ do
388+ path <- readProcessAndLogStderr Debug $ setCwd (Just root) $
389+ proc nixExePath ["eval", "-f", ".", "passthru.staticFilesImpure", "--raw"]
390+ _ <- readProcessAndLogStderr Debug $ setCwd (Just root) $
391+ proc lnPath ["-s", "-f", T.unpack path, "static.out"]
392+ pure path
389393
390394-- | Get the nix store path to the generated static asset manifest module (e.g., "obelisk-generated-static")
391395getHaskellManifestProjectPath :: MonadObelisk m => FilePath -> m Text