From beb157dcb68d9c620673c134a647cc1ad3f414f7 Mon Sep 17 00:00:00 2001 From: emilylange Date: Tue, 23 May 2023 15:49:52 +0200 Subject: [PATCH] ssh: fix substitution when using experimental `nix copy` --- src/nix/host/ssh.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nix/host/ssh.rs b/src/nix/host/ssh.rs index d45ed99..1622007 100644 --- a/src/nix/host/ssh.rs +++ b/src/nix/host/ssh.rs @@ -273,7 +273,11 @@ impl Ssh { ]); if options.use_substitutes { - command.arg("--substitute-on-destination"); + command.args(&[ + "--substitute-on-destination", + // needed due to UX bug in ssh-ng:// + "--builders-use-substitutes", + ]); } if let Some("drv") = path.extension().and_then(OsStr::to_str) {