Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2605.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@

- `services.tandoor-recipes` now uses a sub-directory for media files by default starting with `26.05`. Existing setups should move media files out of the data directory and adjust `services.tandoor-recipes.extraConfig.MEDIA_ROOT` accordingly. See [Migrating media files for pre 26.05 installations](#module-services-tandoor-recipes-migrating-media).

- `rustic` was upgraded to `0.11.x`, which contains breaking [changes to command-line parameters and configuration file](https://rustic.cli.rs/docs/breaking_changes.html#0110).

- The packages `iw` and `wirelesstools` (`iwconfig`, `iwlist`, etc.) are no longer installed implicitly if wireless networking has been enabled.

- `services.kubernetes.addons.dns.coredns` has been renamed to `services.kubernetes.addons.dns.corednsImage` and now expects a
Expand Down
16 changes: 13 additions & 3 deletions pkgs/by-name/ru/rustic/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,40 @@
rustPlatform,
installShellFiles,
nix-update-script,
tzdata,
}:

rustPlatform.buildRustPackage (finalAttrs: {
pname = "rustic";
version = "0.10.3";
version = "0.11.0";

src = fetchFromGitHub {
owner = "rustic-rs";
repo = "rustic";
tag = "v${finalAttrs.version}";
hash = "sha256-MYl6tcCpWsyU38YSXpK3uFaDpS351ct89JIXhvpVu+Q=";
hash = "sha256-2xSQ+nbP7/GsIWvj9sgG+jgIIIesfEW8T9z5Tijd90E=";
};

cargoHash = "sha256-RIkOyx1paYKeytNPAcD402hBQi36gys+6lMnmoR24L8=";
cargoHash = "sha256-4yiWIlibYldr3qny0KRRIHBqHCx6R9gDiiheGkJrwEY=";

nativeBuildInputs = [ installShellFiles ];

nativeCheckInputs = [ tzdata ];

postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd rustic \
--bash <($out/bin/rustic completions bash) \
--fish <($out/bin/rustic completions fish) \
--zsh <($out/bin/rustic completions zsh)
'';

# We set TZDIR to avoid this warning during unit tests:
# > [WARN] could not find zoneinfo, concatenated tzdata or bundled time zone database
# This warning causes the check phase to fail.
preCheck = ''
export TZDIR=${tzdata}/share/zoneinfo
'';

passthru.updateScript = nix-update-script { };

meta = {
Expand Down
Loading