From dbf93cb933e92949f584bd967a38a8b5be0f1a3a Mon Sep 17 00:00:00 2001 From: xrelkd <46590321+xrelkd@users.noreply.github.com> Date: Sat, 16 Dec 2023 06:04:35 +0800 Subject: [PATCH] clipcat: 0.14.0 -> 0.15.0 Diff: https://github.com/xrelkd/clipcat/compare/v0.14.0...v0.15.0 --- pkgs/applications/misc/clipcat/default.nix | 23 +++++++--------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/pkgs/applications/misc/clipcat/default.nix b/pkgs/applications/misc/clipcat/default.nix index 7ba97bc7a9b4..64a3c4f3f893 100644 --- a/pkgs/applications/misc/clipcat/default.nix +++ b/pkgs/applications/misc/clipcat/default.nix @@ -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 \