File tree Expand file tree Collapse file tree 1 file changed +17
-23
lines changed Expand file tree Collapse file tree 1 file changed +17
-23
lines changed Original file line number Diff line number Diff line change 55 pkg-config ,
66 stdenv ,
77 darwin ,
8- libusb1 ,
8+ versionCheckHook ,
99 nix-update-script ,
10- testers ,
11- cyme ,
1210} :
1311
1412rustPlatform . 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" ;
You can’t perform that action at this time.
0 commit comments