2022-09-09 14:08:57 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, clickhouse-backup
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, testers
|
|
|
|
}:
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "clickhouse-backup";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "2.6.2";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-06-20 14:57:18 +00:00
|
|
|
owner = "Altinity";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "clickhouse-backup";
|
2021-12-06 16:07:01 +00:00
|
|
|
rev = "v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-t9sRhcNKFvTTysornYf/7JQ7mkasTunnzKR4pYCAOk0=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
vendorHash = "sha256-n3rlijycZ5qZtR/e+Z/UPCcr47p4wN3kFgfWr+73WAQ=";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
'';
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = clickhouse-backup;
|
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool for easy ClickHouse backup and restore using object storage for backup files";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "clickhouse-backup";
|
2024-06-20 14:57:18 +00:00
|
|
|
homepage = "https://github.com/Altinity/clickhouse-backup";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.mit;
|
2024-06-20 14:57:18 +00:00
|
|
|
maintainers = with maintainers; [ devusb ];
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|