Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

auto_update: Add NixOS rsync install hint (#56097)

Karol Brodadccea211edfe
diff --git a/crates/auto_update/src/auto_update.rs b/crates/auto_update/src/auto_update.rs
index c1b15aa3b6c..c14de5a801c 100644
--- a/crates/auto_update/src/auto_update.rs
+++ b/crates/auto_update/src/auto_update.rs
@@ -81,6 +81,11 @@ fn linux_rsync_install_hint() -> &'static str {
|| distribution_id == "almalinux"
}) {
Some("Install it with: sudo dnf install rsync")
+ } else if distribution_ids
+ .iter()
+ .any(|distribution_id| distribution_id == "nixos")
+ {
+ Some("Install pkgs.rsync from nixpkgs")
} else {
None
};