Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.

Commit e579aa4

Browse files
authored
Merge pull request #28 from input-output-hk/vulnix
rebuild: copy store derivations
2 parents 1100bf1 + aede50d commit e579aa4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/src/rebuild.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,16 @@ pub fn nix_copy_to_machine(target: &str, ssh: &IpAddr) -> Result<()> {
127127
.arg(format!("ssh://root@{}", ssh))
128128
.arg(target),
129129
)?;
130+
// vulnix operates on store derivations
131+
check_cmd(
132+
Command::new("nix")
133+
.arg("copy")
134+
.arg("--derivation")
135+
.arg("--substitute-on-destination")
136+
.arg("--to")
137+
.arg(format!("ssh://root@{}", ssh))
138+
.arg(target),
139+
)?;
130140
Ok(())
131141
}
132142

0 commit comments

Comments
 (0)