1 { lib, fetchFromGitHub, installShellFiles, rustPlatform, rustfmt, xorg
2 , pkg-config, llvmPackages, clang, protobuf, python3 }:
4 rustPlatform.buildRustPackage rec {
8 src = fetchFromGitHub {
12 sha256 = "0rxl3ksjinw07q3p2vjqg80k3c6wx2q7pzpf2344zyfb4gkqzx1c";
15 cargoSha256 = "1n4il3l59m2a6ca54vfaivzg25abf8s4w5kpd5q51p13624iz0kb";
17 LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
19 # needed for internal protobuf c wrapper library
20 PROTOC = "${protobuf}/bin/protoc";
21 PROTOC_INCLUDE = "${protobuf}/include";
36 buildInputs = [ xorg.libxcb ];
38 buildFeatures = [ "all" ];
41 installShellCompletion --bash completions/bash-completion/completions/*
42 installShellCompletion --fish completions/fish/completions/*
43 installShellCompletion --zsh completions/zsh/site-functions/*
47 description = "Clipboard Manager written in Rust Programming Language";
48 homepage = "https://github.com/xrelkd/clipcat";
49 license = licenses.gpl3Only;
50 platforms = platforms.linux;
51 maintainers = with maintainers; [ xrelkd ];