depot/third_party/nixpkgs/pkgs/development/tools/database/clickhouse-backup/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

40 lines
870 B
Nix

{ buildGoModule
, clickhouse-backup
, fetchFromGitHub
, lib
, testers
}:
buildGoModule rec {
pname = "clickhouse-backup";
version = "2.2.6";
src = fetchFromGitHub {
owner = "AlexAkulov";
repo = pname;
rev = "v${version}";
sha256 = "sha256-oFGaNxK8cVrs+rkmJR9wSYB4+i3B8BGYhsuHbUTK3es=";
};
vendorHash = "sha256-UY/8fWPoO3d0g1/CN215Q4z744S2cCT7fB4ctpridAI=";
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;
};
}