159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
40 lines
901 B
Nix
40 lines
901 B
Nix
{ buildGoModule
|
|
, clickhouse-backup
|
|
, fetchFromGitHub
|
|
, lib
|
|
, testers
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "clickhouse-backup";
|
|
version = "2.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Altinity";
|
|
repo = "clickhouse-backup";
|
|
rev = "v${version}";
|
|
hash = "sha256-IaRM0wxG/8O12SuCls9MAtiobPHhuDFoFDaT3ZOn2Hk=";
|
|
};
|
|
|
|
vendorHash = "sha256-n3rlijycZ5qZtR/e+Z/UPCcr47p4wN3kFgfWr+73WAQ=";
|
|
|
|
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 ];
|
|
};
|
|
}
|