mirror of
https://github.com/msfjarvis/clipboard-substitutor
synced 2025-08-14 22:27:03 +05:30
nix: update shell config
This commit is contained in:
parent
58809b1f74
commit
9ac2d098e2
2 changed files with 9 additions and 6 deletions
13
shell.nix
13
shell.nix
|
@ -1,11 +1,14 @@
|
||||||
with import <nixpkgs> { overlays = [ (import <rust-overlay>) ]; };
|
with import <nixpkgs> { overlays = [ (import <rust-overlay>) ]; };
|
||||||
mkShell {
|
mkShell {
|
||||||
RUSTFLAGS = "";
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
(rust-bin.selectLatestNightlyWith (toolchain:
|
(rust-bin.stable.latest.default.override {
|
||||||
toolchain.default.override {
|
extensions = [ "rust-src" "rustfmt-preview" ];
|
||||||
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
|
xorg.libxcb
|
||||||
|
python39
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,7 @@ fn get_config_path() -> Result<PathBuf> {
|
||||||
Ok(config_path)
|
Ok(config_path)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn loop_clipboard(config: Replacements) {
|
fn loop_clipboard(config: Replacements<'_>) {
|
||||||
let mut clipboard: ClipboardContext =
|
let mut clipboard: ClipboardContext =
|
||||||
ClipboardProvider::new().expect("Failed to get clipboard");
|
ClipboardProvider::new().expect("Failed to get clipboard");
|
||||||
let mut clipboard_contents = get_clipboard_contents(&mut clipboard);
|
let mut clipboard_contents = get_clipboard_contents(&mut clipboard);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue