From cc57704fe0a0ff56e14dd477b8b0a302682ca05a Mon Sep 17 00:00:00 2001 From: Oleks Date: Mon, 16 Mar 2026 13:36:29 +0200 Subject: [PATCH] fix: use double-quoted sed to avoid Nix string escaping issue in rustc patch --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 375f8c9..b4e13db 100644 --- a/flake.nix +++ b/flake.nix @@ -100,7 +100,7 @@ (final: prev: { rustc = prev.rustc.overrideAttrs (old: { postPatch = (old.postPatch or "") + '' - sed -i 's|if !self.config.dry_run() { symlink_file(src.as_ref(), link.as_ref()) }|if !self.config.dry_run() { let _ = std::fs::remove_file(link.as_ref()); symlink_file(src.as_ref(), link.as_ref()) }|' src/bootstrap/src/lib.rs + sed -i "s|if !self.config.dry_run() { symlink_file(src.as_ref(), link.as_ref()) }|if !self.config.dry_run() { let _ = std::fs::remove_file(link.as_ref()); symlink_file(src.as_ref(), link.as_ref()) }|" src/bootstrap/src/lib.rs ''; }); })