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-07-01 15:47:52 +00:00
|
|
|
version = "2.5.16";
|
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-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-FvL7LGgSMxflr7X9Z1qe9qPmDcqEr7ZGM36mtOhlTWY=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
vendorHash = "sha256-vwcItklYe6ljFdGTxef19plaI5OMoOtQohY0xZLBUos=";
|
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
|
|
|
};
|
|
|
|
}
|