clickhouse-backup: 1.6.0 -> 2.0.0

* Add version test.
This commit is contained in:
superherointj 2022-09-05 11:17:20 -03:00
parent 73bf7a0ca0
commit f96f77c909

View File

@ -1,25 +1,38 @@
{ buildGoModule, lib, fetchFromGitHub }:
{ buildGoModule
, clickhouse-backup
, fetchFromGitHub
, lib
, testers
}:
buildGoModule rec {
pname = "clickhouse-backup";
version = "1.6.0";
version = "2.0.0";
src = fetchFromGitHub {
owner = "AlexAkulov";
repo = pname;
rev = "v${version}";
sha256 = "sha256-wvF81bzNW1ps+iZ9HDmE91vciD8l8dO0HS5XGUDa+AA=";
sha256 = "sha256-PIn90tz/FnUr4MGKZfLcP0hmF3eqKGB+1gKwfgtk/70=";
};
vendorSha256 = "sha256-7pKaIhIqINy7A/QE9teVT/S2ho9atnKcixk8y5DEuVk=";
vendorSha256 = "sha256-aPVzXZ7wjVtxjJXhbDlvBhdzoYsvii6OKUaQryrjaNc=";
ldflags = [
"-X main.version=${version}"
];
postConfigure = ''
export CGO_ENABLED=0
'';
passthru.tests.version = testers.testVersion {
package = clickhouse-backup;
};
meta = with lib; {
homepage = "https://github.com/AlexAkulov/clickhouse-backup";
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; [ ma27 ];
platforms = platforms.linux;