File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed
Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 55 rustPlatform ,
66 installShellFiles ,
77 nix-update-script ,
8+ tzdata ,
89} :
910
1011rustPlatform . buildRustPackage ( finalAttrs : {
1112 pname = "rustic" ;
12- version = "0.10.3 " ;
13+ version = "0.11.0 " ;
1314
1415 src = fetchFromGitHub {
1516 owner = "rustic-rs" ;
1617 repo = "rustic" ;
1718 tag = "v${ finalAttrs . version } " ;
18- hash = "sha256-MYl6tcCpWsyU38YSXpK3uFaDpS351ct89JIXhvpVu+Q =" ;
19+ hash = "sha256-2xSQ+nbP7/GsIWvj9sgG+jgIIIesfEW8T9z5Tijd90E =" ;
1920 } ;
2021
21- cargoHash = "sha256-RIkOyx1paYKeytNPAcD402hBQi36gys+6lMnmoR24L8 =" ;
22+ cargoHash = "sha256-4yiWIlibYldr3qny0KRRIHBqHCx6R9gDiiheGkJrwEY =" ;
2223
23- nativeBuildInputs = [ installShellFiles ] ;
24+ nativeBuildInputs = [
25+ installShellFiles
26+ tzdata
27+ ] ;
2428
2529 postInstall = lib . optionalString ( stdenv . buildPlatform . canExecute stdenv . hostPlatform ) ''
2630 installShellCompletion --cmd rustic \
@@ -29,6 +33,13 @@ rustPlatform.buildRustPackage (finalAttrs: {
2933 --zsh <($out/bin/rustic completions zsh)
3034 '' ;
3135
36+ # We set TZDIR to avoid this warning during unit tests:
37+ # > [WARN] could not find zoneinfo, concatenated tzdata or bundled time zone database
38+ # This warning causes the check phase to fail.
39+ preCheck = ''
40+ export TZDIR=${ tzdata } /share/zoneinfo
41+ '' ;
42+
3243 passthru . updateScript = nix-update-script { } ;
3344
3445 meta = {
You can’t perform that action at this time.
0 commit comments