Skip to content

Commit 3596222

Browse files
authored
fix: nix build (#71)
Patch never applies, the code in the repo doesn't match the patch. ``` error: builder for '/nix/store/h66ffisgy216shs79wn8ca7nvm6imylw-nufmt.drv' failed with exit code 1; last 10 log lines: > Running phase: unpackPhase > unpacking source archive /nix/store/9waf3yvwcq8yp0ak03qzz5wq9pvkq604-ygdji3y8jsyq71pww9c8pwwncwd0kwz4-source > source root is ygdji3y8jsyq71pww9c8pwwncwd0kwz4-source > Executing cargoSetupPostUnpackHook > Finished cargoSetupPostUnpackHook > Running phase: patchPhase > applying patch /nix/store/l7ydv4ifncszmaha510nfr2zwn7l56yq-1fgjm3xfpm6v4irkfrb3pjy9c5zw8l40-integration-tests-nix-fix.patch > patching file tests/main.rs > Hunk #1 FAILED at 8. > 1 out of 1 hunk FAILED -- saving rejects to file tests/main.rs.rej ``` ## Description of changes <!-- What changes did you make --> ## Relevant Issues <!-- Eg. #43 --> Signed-off-by: Austin Horstman <[email protected]>
1 parent 62fd38a commit 3596222

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
const VALID: &str = "# beginning of script comment
3939
let one = 1
4040
";
41-
-const TEST_BINARY: &'static str = "target/debug/nufmt";
42-
+const TEST_BINARY: &'static str = "target/@target_triple@/release/nufmt";
41+
-const TEST_BINARY: &str = "target/debug/nufmt";
42+
+const TEST_BINARY: &str = "target/@target_triple@/release/nufmt";
4343
4444
#[test]
4545
fn failure_with_invalid_config() {

0 commit comments

Comments
 (0)