14 stdenv.mkDerivation rec {
15 pname = "wl-clipboard";
18 src = fetchFromGitHub {
20 repo = "wl-clipboard";
22 hash = "sha256-BYRXqVpGt9FrEBYQpi2kHPSZyeMk9o1SXkxjjcduhiY=";
26 nativeBuildInputs = [ meson ninja pkg-config wayland-scanner makeWrapper ];
27 buildInputs = [ wayland wayland-protocols ];
30 "-Dfishcompletiondir=share/fish/vendor_completions.d"
33 # Fix for https://github.com/NixOS/nixpkgs/issues/251261
34 postInstall = lib.optionalString (!xdg-utils.meta.broken) ''
35 wrapProgram $out/bin/wl-copy \
36 --suffix PATH : ${lib.makeBinPath [ xdg-utils ]}
40 homepage = "https://github.com/bugaevc/wl-clipboard";
41 description = "Command-line copy/paste utilities for Wayland";
42 license = licenses.gpl3Plus;
43 maintainers = with maintainers; [ dywedir kashw2 ];
44 platforms = platforms.unix;