Merge pull request #274552 from xrelkd/update/clipcat

clipcat: 0.14.0 -> 0.15.0
This commit is contained in:
Nick Cao 2023-12-17 09:45:54 -05:00 committed by GitHub
commit 8f44077260
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,42 +2,33 @@
, fetchFromGitHub
, rustPlatform
, protobuf
, xvfb-run
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
pname = "clipcat";
version = "0.14.0";
version = "0.15.0";
src = fetchFromGitHub {
owner = "xrelkd";
repo = pname;
rev = "v${version}";
hash = "sha256-Q9uGufIfqRLk3YJjaEEyu29JP8vSwUCe4ch9tf6Vz9g=";
hash = "sha256-NuljH6cqgdtTJDkNv4w44s1UM4/R1gmpVyWpCzCJ3DU=";
};
cargoHash = "sha256-9TPj4W+BSpHlOWkbiV7jNgjiYJjjw9j2c3o8vesrJeI=";
cargoHash = "sha256-5+qa9/QGZyZBaO2kbvpP7Ybs1EXIO1MlPFm0PDTNqCQ=";
nativeBuildInputs = [
protobuf
installShellFiles
];
nativeCheckInputs = [
xvfb-run
checkFlags = [
# Some test cases interact with X11, skip them
"--skip=test_x11_clipboard"
"--skip=test_x11_primary"
];
useNextest = true;
# cargo-nextest help us retry the failed test cases
NEXTEST_RETRIES = 5;
# Some test cases interact with X11, we use xvfb-run here
checkPhase = ''
xvfb-run --auto-servernum cargo nextest run --release --workspace --no-fail-fast --no-capture
'';
postInstall = ''
for cmd in clipcatd clipcatctl clipcat-menu clipcat-notify; do
installShellCompletion --cmd $cmd \