depot/third_party/nixpkgs/pkgs/development/tools/database/clickhouse-backup/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

40 lines
871 B
Nix

{ buildGoModule
, clickhouse-backup
, fetchFromGitHub
, lib
, testers
}:
buildGoModule rec {
pname = "clickhouse-backup";
version = "2.4.27";
src = fetchFromGitHub {
owner = "AlexAkulov";
repo = pname;
rev = "v${version}";
sha256 = "sha256-P/a875I1qRxnghly61hjIwora6AFmLHM5UNVYJW4puQ=";
};
vendorHash = "sha256-kI2n7vNY7LQC2dLJL7b46X6Sk9ek3E66dSvEdYsxwI8=";
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";
homepage = "https://github.com/AlexAkulov/clickhouse-backup";
license = licenses.mit;
maintainers = with maintainers; [ ];
platforms = platforms.linux;
};
}