fix: use double-quoted sed to avoid Nix string escaping issue in rustc patch
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -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
|
||||
'';
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user