Skip to content

Commit e70e4b5

Browse files
authored
cyme: 1.8.5 -> 2.1.2 (#384754)
2 parents d8a4e9d + ff707f8 commit e70e4b5

File tree

1 file changed

+17
-23
lines changed

1 file changed

+17
-23
lines changed

pkgs/by-name/cy/cyme/package.nix

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,23 @@
55
pkg-config,
66
stdenv,
77
darwin,
8-
libusb1,
8+
versionCheckHook,
99
nix-update-script,
10-
testers,
11-
cyme,
1210
}:
1311

1412
rustPlatform.buildRustPackage rec {
1513
pname = "cyme";
16-
version = "1.8.5";
14+
version = "2.1.2";
1715

1816
src = fetchFromGitHub {
1917
owner = "tuna-f1sh";
2018
repo = "cyme";
2119
rev = "v${version}";
22-
hash = "sha256-4lnW6p7MaAZdvyXddIoB8TuEQSCmBYOwyvOA1r2ZKxk=";
20+
hash = "sha256-KAHCeM1rAPGi98PrcVJtzkhTWGWFwf37VuSQTjqXSEg=";
2321
};
2422

2523
useFetchCargoVendor = true;
26-
cargoHash = "sha256-eUBhMI/ff99SEU76yYvCzEvyLHtQqXgk/bHqmxPQlnc=";
24+
cargoHash = "sha256-LwBTDBrsigt8H6PFuuGndiMlj5d8v68dyHipVYOGKVk=";
2725

2826
nativeBuildInputs =
2927
[
@@ -33,26 +31,22 @@ rustPlatform.buildRustPackage rec {
3331
darwin.DarwinTools
3432
];
3533

36-
buildInputs = [
37-
libusb1
34+
checkFlags = [
35+
# doctest that requires access outside sandbox
36+
"--skip=udev::hwdb::get"
37+
# - system_profiler is not available in the sandbox
38+
# - workaround for "Io Error: No such file or directory"
39+
"--skip=test_run"
3840
];
3941

40-
checkFlags =
41-
[
42-
# doctest that requires access outside sandbox
43-
"--skip=udev::hwdb::get"
44-
]
45-
++ lib.optionals stdenv.hostPlatform.isDarwin [
46-
# system_profiler is not available in the sandbox
47-
"--skip=test_run"
48-
];
42+
nativeInstallCheckInputs = [
43+
versionCheckHook
44+
];
45+
doInstallCheck = true;
46+
versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}";
47+
versionCheckProgramArg = [ "--version" ];
4948

50-
passthru = {
51-
updateScript = nix-update-script { };
52-
tests.version = testers.testVersion {
53-
package = cyme;
54-
};
55-
};
49+
passthru.updateScript = nix-update-script { };
5650

5751
meta = with lib; {
5852
homepage = "https://github.com/tuna-f1sh/cyme";

0 commit comments

Comments
 (0)