mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
41 lines
870 B
Nix
41 lines
870 B
Nix
{ buildGoModule
|
|
, clickhouse-backup
|
|
, fetchFromGitHub
|
|
, lib
|
|
, testers
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "clickhouse-backup";
|
|
version = "2.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AlexAkulov";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-rIsDoODY8+fi6MXPnco6gB8vAmamtGtz5tE+0Wjjqes=";
|
|
};
|
|
|
|
vendorHash = "sha256-fdo4mZKDuAxuKi9z34rCiZXawG8q1fjI4FzeJgp3iFs=";
|
|
|
|
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;
|
|
};
|
|
}
|