diff --git a/shell.nix b/shell.nix index 3c6c668..8f14c64 100644 --- a/shell.nix +++ b/shell.nix @@ -1,11 +1,14 @@ with import { overlays = [ (import ) ]; }; mkShell { - RUSTFLAGS = ""; buildInputs = [ - (rust-bin.selectLatestNightlyWith (toolchain: - toolchain.default.override { - extensions = [ "rust-src" "rustfmt-preview" ]; - })) + (rust-bin.stable.latest.default.override { + extensions = [ "rust-src" "rustfmt-preview" ]; + targets = + pkgs.lib.optionals pkgs.stdenv.isDarwin [ "aarch64-apple-darwin" ] + ++ pkgs.lib.optionals pkgs.stdenv.isLinux + [ "x86_64-unknown-linux-musl" ]; + }) xorg.libxcb + python39 ]; } diff --git a/src/main.rs b/src/main.rs index 5943b87..c2f4809 100644 --- a/src/main.rs +++ b/src/main.rs @@ -80,7 +80,7 @@ fn get_config_path() -> Result { Ok(config_path) } -fn loop_clipboard(config: Replacements) { +fn loop_clipboard(config: Replacements<'_>) { let mut clipboard: ClipboardContext = ClipboardProvider::new().expect("Failed to get clipboard"); let mut clipboard_contents = get_clipboard_contents(&mut clipboard);