8 withNativeLibs ? false,
11 rustPlatform.buildRustPackage rec {
12 pname = "wl-clipboard-rs";
15 src = fetchFromGitHub {
17 repo = "wl-clipboard-rs";
19 hash = "sha256-jGTWcVR6atkEeEUunystJ4B6I3GzYiCOMs0MC6pvPfI=";
22 cargoHash = "sha256-P0WLYHNLN8ZqoDRszsgfQTiWeVpfBpFHiEWpQMBjNJM=";
26 "--package=wl-clipboard-rs"
27 "--package=wl-clipboard-rs-tools"
29 ++ lib.optionals withNativeLibs [
30 "--features=native_lib"
37 ++ lib.optionals withNativeLibs [
45 ++ lib.optionals withNativeLibs [
50 export XDG_RUNTIME_DIR=$(mktemp -d)
55 "--skip=tests::copy::copy_large"
56 "--skip=tests::copy::copy_multi_no_additional_text_mime_types_test"
57 "--skip=tests::copy::copy_multi_test"
58 "--skip=tests::copy::copy_randomized"
59 "--skip=tests::copy::copy_test"
63 installManPage target/man/wl-copy.1
64 installManPage target/man/wl-paste.1
66 installShellCompletion --cmd wl-copy \
67 --bash target/completions/wl-copy.bash \
68 --fish target/completions/wl-copy.fish \
69 --zsh target/completions/_wl-copy
71 installShellCompletion --cmd wl-paste \
72 --bash target/completions/wl-paste.bash \
73 --fish target/completions/wl-paste.fish \
74 --zsh target/completions/_wl-paste
78 description = "Command-line copy/paste utilities for Wayland, written in Rust";
79 homepage = "https://github.com/YaLTeR/wl-clipboard-rs";
80 changelog = "https://github.com/YaLTeR/wl-clipboard-rs/blob/v${version}/CHANGELOG.md";
81 platforms = platforms.linux;
82 license = with licenses; [
86 mainProgram = "wl-clip";
87 maintainers = with maintainers; [