python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / applications / misc / clipcat / default.nix
blob38c0c103943a9c1d41c738fa1547313cb48998b6
1 { lib, fetchFromGitHub, installShellFiles, rustPlatform, rustfmt, xorg
2 , pkg-config, llvmPackages, clang, protobuf, python3 }:
4 rustPlatform.buildRustPackage rec {
5   pname = "clipcat";
6   version = "0.5.0";
8   src = fetchFromGitHub {
9     owner = "xrelkd";
10     repo = pname;
11     rev = "v${version}";
12     sha256 = "0rxl3ksjinw07q3p2vjqg80k3c6wx2q7pzpf2344zyfb4gkqzx1c";
13   };
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";
23   nativeBuildInputs = [
24     pkg-config
26     clang
27     llvmPackages.libclang
29     rustfmt
30     protobuf
32     python3
34     installShellFiles
35   ];
36   buildInputs = [ xorg.libxcb ];
38   buildFeatures = [ "all" ];
40   postInstall = ''
41     installShellCompletion --bash completions/bash-completion/completions/*
42     installShellCompletion --fish completions/fish/completions/*
43     installShellCompletion --zsh  completions/zsh/site-functions/*
44   '';
46   meta = with lib; {
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 ];
52   };