rustic: 0.7.0 -> 0.7.0-unstable-2024-08-10

This commit is contained in:
Norbert Melzer 2024-08-14 19:49:51 +02:00 committed by Alyssa Ross
parent 9fe8fdc039
commit 8d6e39e49d
2 changed files with 5203 additions and 15 deletions

5170
pkgs/by-name/ru/rustic/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,36 +1,51 @@
{ lib {
, fetchFromGitHub lib,
, rustPlatform fetchFromGitHub,
, stdenv rustPlatform,
, Security stdenv,
, SystemConfiguration Security,
, installShellFiles SystemConfiguration,
, nix-update-script installShellFiles,
nix-update-script,
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "rustic"; pname = "rustic";
version = "0.7.0"; version = "0.7.0-unstable-2024-08-10";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rustic-rs"; owner = "rustic-rs";
repo = "rustic"; repo = "rustic";
rev = "refs/tags/v${version}"; # rev = "refs/tags/v${version}";
hash = "sha256-jUAmboJTzX4oJZy9rFiPRbm94bVpZGa0SaqotoCU/Ss="; rev = "1c9969c";
hash = "sha256-+YVF59xHb82TOn7Gl0BbX2Yx6Owsp0LiOBgEXHN9QVI=";
}; };
cargoHash = "sha256-8YGvxnwD9Vshah2jZ+XxOW0qB4nvWsOyLY1W8k+xQzU="; # With the next release please go back to `cargoHash` and remove the vendored
# `Cargo.lock` if possible.
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"rustic_backend-0.1.1" = "sha256-6VC0DKqV9NPzwKs6SOI3dQMKrGZd2azUBMbU9dejHKs=";
};
};
# At the time of writing, upstream defaults to "self-update" and "webdav". # At the time of writing, upstream defaults to "self-update", "tui", and "webdav".
# "self-update" is a self-updater, which we don't want in nixpkgs. # "self-update" is a self-updater, which we don't want in nixpkgs.
# With each update we should therefore ensure that we mimic the default features
# as closely as possible.
buildNoDefaultFeatures = true; buildNoDefaultFeatures = true;
buildFeatures = [ buildFeatures = [
"tui"
"webdav" "webdav"
]; ];
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [ Security SystemConfiguration ]; buildInputs = lib.optionals stdenv.isDarwin [
Security
SystemConfiguration
];
postInstall = '' postInstall = ''
for shell in {ba,fi,z}sh; do for shell in {ba,fi,z}sh; do
@ -48,7 +63,10 @@ rustPlatform.buildRustPackage rec {
description = "fast, encrypted, deduplicated backups powered by pure Rust"; description = "fast, encrypted, deduplicated backups powered by pure Rust";
mainProgram = "rustic"; mainProgram = "rustic";
platforms = lib.platforms.linux ++ lib.platforms.darwin; platforms = lib.platforms.linux ++ lib.platforms.darwin;
license = [ lib.licenses.mit lib.licenses.asl20 ]; license = [
lib.licenses.mit
lib.licenses.asl20
];
maintainers = [ lib.maintainers.nobbz ]; maintainers = [ lib.maintainers.nobbz ];
}; };
} }