@@ -347,11 +347,13 @@ findProjectAssets root = do
347347 ]
348348 -- Check whether the impure static files are a derivation (and so must be built)
349349 if isDerivation == "1"
350− then fmap T.strip $ readProcessAndLogStderr Debug $ setCwd (Just root) $ -- Strip whitespace here because nix-build has no --raw option
351− proc nixBuildExePath
352− [ "--no-out-link"
353− , "-E", "(import ./. {}).passthru.staticFilesImpure"
354− ]
350+ then do
351+ _ <- readProcessAndLogStderr Debug $ setCwd (Just root) $
352+ proc nixBuildExePath
353+ [ "-o", "static.out"
354+ , "-E", "(import ./. {}).passthru.staticFilesImpure"
355+ ]
356+ pure $ T.pack $ root </> "static.out"
355357 else readProcessAndLogStderr Debug $ setCwd (Just root) $
356358 proc nixExePath ["eval", "-f", ".", "passthru.staticFilesImpure", "--raw"]
357359