Merge pull request #274552 from xrelkd/update/clipcat
clipcat: 0.14.0 -> 0.15.0
This commit is contained in:
commit
8f44077260
1 changed files with 7 additions and 16 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue