diff options
author | Ben Sima <ben@bsima.me> | 2020-12-30 09:10:07 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-12-30 09:10:07 -0500 |
commit | 2d6075d13a9d2cf023cb34a079b0c071af9ee650 (patch) | |
tree | 60da6ab86e330bba20701452e3517404921c7fbb /Biz/Bild.hs | |
parent | 2fb977ee2e949a38896b2ea27caf398890eda053 (diff) |
bild: try to fix the remote bild message again
Diffstat (limited to 'Biz/Bild.hs')
-rw-r--r-- | Biz/Bild.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Biz/Bild.hs b/Biz/Bild.hs index 27f1f50..23086a7 100644 --- a/Biz/Bild.hs +++ b/Biz/Bild.hs @@ -203,7 +203,7 @@ analyze s = do out = "", builder = if host == "lithium" - then user <> "@lithium" + then mempty else join [ "ssh://", @@ -277,7 +277,9 @@ build target@Target {..} = do putText <| "bild: nix: " <> Namespace.toPath namespace let outDir = root </> "_/bild/nix" Dir.createDirectoryIfMissing True outDir - putText <| "bild: nix: builder: " <> Text.pack builder + if null builder + then putText <| "bild: nix: local" + else putText <| "bild: nix: remote: " <> Text.pack builder Process.callProcess "nix-build" [ path, |