98eb3e9ef5
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
40 lines
902 B
Nix
40 lines
902 B
Nix
{ buildGoModule
|
|
, clickhouse-backup
|
|
, fetchFromGitHub
|
|
, lib
|
|
, testers
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "clickhouse-backup";
|
|
version = "2.5.16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Altinity";
|
|
repo = "clickhouse-backup";
|
|
rev = "v${version}";
|
|
hash = "sha256-FvL7LGgSMxflr7X9Z1qe9qPmDcqEr7ZGM36mtOhlTWY=";
|
|
};
|
|
|
|
vendorHash = "sha256-vwcItklYe6ljFdGTxef19plaI5OMoOtQohY0xZLBUos=";
|
|
|
|
ldflags = [
|
|
"-X main.version=${version}"
|
|
];
|
|
|
|
postConfigure = ''
|
|
export CGO_ENABLED=0
|
|
'';
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = clickhouse-backup;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Tool for easy ClickHouse backup and restore using object storage for backup files";
|
|
mainProgram = "clickhouse-backup";
|
|
homepage = "https://github.com/Altinity/clickhouse-backup";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ devusb ];
|
|
};
|
|
}
|