depot/third_party/nixpkgs/pkgs/development/tools/database/clickhouse-backup/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

40 lines
902 B
Nix

{ buildGoModule
, clickhouse-backup
, fetchFromGitHub
, lib
, testers
}:
buildGoModule rec {
pname = "clickhouse-backup";
version = "2.5.14";
src = fetchFromGitHub {
owner = "Altinity";
repo = "clickhouse-backup";
rev = "v${version}";
hash = "sha256-y57P6AM0w1AaOxCOHPjdgyhvqP/yasOP46JdErnYEvg=";
};
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 ];
};
}