5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
41 lines
921 B
Nix
41 lines
921 B
Nix
{ buildGoModule
|
|
, clickhouse-backup
|
|
, fetchFromGitHub
|
|
, lib
|
|
, testers
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "clickhouse-backup";
|
|
version = "2.5.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AlexAkulov";
|
|
repo = "clickhouse-backup";
|
|
rev = "v${version}";
|
|
hash = "sha256-tX/ttOud6tSsuKhvfwFP3bav+VzSdfVvAdowomQ1YcY=";
|
|
};
|
|
|
|
vendorHash = "sha256-ybKCD8mZ8MumKsWicS09E/BW0laAPy1iqA6q8lfczHA=";
|
|
|
|
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 with cloud storages support";
|
|
mainProgram = "clickhouse-backup";
|
|
homepage = "https://github.com/AlexAkulov/clickhouse-backup";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|