2024-10-11 05:15:48 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
darwin
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "conserve";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "24.8.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sourcefrog";
|
|
|
|
repo = "conserve";
|
|
|
|
rev = "v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-rdZTx0wFFtWt3EcpvWHY6m+8TEHEj53vhVpdRp5wbos=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
cargoHash = "sha256-IP9x3n5RdI+TKOhMBWEfw9P2CROcC0SmEsmMVaXjiDE=";
|
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
buildInputs = lib.optionals (stdenv.isDarwin) [
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
checkFlags = [
|
|
|
|
# expected to panic if unix user has no secondary group,
|
|
|
|
# which is the case in the nix sandbox
|
|
|
|
"--skip=test_fixtures::test::arbitrary_secondary_group_is_found"
|
|
|
|
"--skip=chgrp_reported_as_changed"
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Robust portable backup tool in Rust";
|
|
|
|
homepage = "https://github.com/sourcefrog/conserve";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "conserve";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|