@@ -59,6 +59,7 @@ data CabalPackageInfo = CabalPackageInfo
5959run :: ObeliskT IO ()
6060run = do
6161 let nixPath = $(staticWhich "nix")
62+ nixBuildPath = $(staticWhich "nix-build")
6263 pkgs <- getLocalPkgs
6364 withGhciScript pkgs $ \dotGhciPath -> do
6465 freePort <- getFreePort
@@ -79,7 +80,7 @@ run = do
7980 -- Check whether the impure static files are a derivation (and so must be built)
8081 if isDerivation == "1"
8182 then fmap T.strip $ readProcessAndLogStderr Debug $ -- Strip whitespace here because nix-build has no --raw option
82− proc (nixPath <> "-build")
83+ proc nixBuildPath
8384 [ "--no-out-link"
8485 , "-E", "(import " <> importableRoot <> "{}).passthru.staticFilesImpure"
8586 ]