54 lines
1.3 KiB
Nix
54 lines
1.3 KiB
Nix
{ lib, fetchFromGitHub, installShellFiles, rustPlatform, rustfmt, xorg
|
|
, pkg-config, llvmPackages, clang, protobuf, python3 }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "clipcat";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xrelkd";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0rxl3ksjinw07q3p2vjqg80k3c6wx2q7pzpf2344zyfb4gkqzx1c";
|
|
};
|
|
|
|
cargoSha256 = "1n4il3l59m2a6ca54vfaivzg25abf8s4w5kpd5q51p13624iz0kb";
|
|
|
|
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
|
|
|
|
# needed for internal protobuf c wrapper library
|
|
PROTOC = "${protobuf}/bin/protoc";
|
|
PROTOC_INCLUDE = "${protobuf}/include";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
|
|
clang
|
|
llvmPackages.libclang
|
|
|
|
rustfmt
|
|
protobuf
|
|
|
|
python3
|
|
|
|
installShellFiles
|
|
];
|
|
buildInputs = [ xorg.libxcb ];
|
|
|
|
buildFeatures = [ "all" ];
|
|
|
|
postInstall = ''
|
|
installShellCompletion --bash completions/bash-completion/completions/*
|
|
installShellCompletion --fish completions/fish/completions/*
|
|
installShellCompletion --zsh completions/zsh/site-functions/*
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Clipboard Manager written in Rust Programming Language";
|
|
homepage = "https://github.com/xrelkd/clipcat";
|
|
license = licenses.gpl3Only;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ xrelkd ];
|
|
};
|
|
}
|