diff --git a/README.md b/README.md index 377a419..38444b4 100644 --- a/README.md +++ b/README.md @@ -255,6 +255,18 @@ brew install ffsend ffsend --help ``` +#### macOS: Nix package +_Note: The Nix package is currently not automatically updated, therefore it +might be slightly outdated. Open an issue if you believe an important update +is missing._ + +```bash +nix-channel --update +nix-env --install ffsend + +ffsend --help +``` + #### macOS: Prebuilt binaries Check out the [latest release][github-latest-release] assets for a macOS binary. If it isn't available yet, you may use an artifact from a diff --git a/build.rs b/build.rs index e4bed5f..b9d1361 100644 --- a/build.rs +++ b/build.rs @@ -1,6 +1,6 @@ fn main() { // xclip and xsel paths are inserted at compile time on Linux - #[cfg(target_os = "linux")] + #[cfg(all(feature = "clipboard", target_os = "linux"))] { println!("cargo:rerun-if-env-changed=XCLIP_PATH"); println!("cargo:rerun-if-env-changed=XSEL_PATH"); diff --git a/src/util.rs b/src/util.rs index c822aeb..5d9962d 100644 --- a/src/util.rs +++ b/src/util.rs @@ -352,7 +352,7 @@ impl ClipboardType { } } - /// Set clipboar contents through the selected clipboard type. + /// Set clipboard contents through the selected clipboard type. pub fn set(&self, content: String) -> Result<(), ClipboardError> { match self { #[cfg(not(target_os = "linux"))]