diff --git a/flake.nix b/flake.nix index 48da04a..aa3aec0 100644 --- a/flake.nix +++ b/flake.nix @@ -99,11 +99,9 @@ # Patch symlink_file in lib.rs to remove existing destination first. (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 - ''; + 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 + ''; }); }) ];