#
# Clipboard sync utility.
#
# vim: et:ts=2:sw=2:
#
{
  rustPlatform,
  fetchFromGitHub,
  xorg
}:
rustPlatform.buildRustPackage rec {
  pname = "clipboard-sync";
  version = "0.2.0";

  buildInputs = [
    xorg.libxcb
  ];

  src = fetchFromGitHub {
    owner = "dnut";
    repo = pname;
    rev = version;
    hash = "sha256-gme5pwQrwQbk8MroF/mGYqlY6hcjM5cHKHL7Y3nlW9k=";
  };

  cargoHash = "sha256-/LGRgml+iNwoMrMCmDesCpXA1qgWKauuqM540SZMS3Y=";

  meta = {
    description = "Wayland and X multi-instance clipboard syncing";
  };
}
