Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / database / clickhouse-backup / default.nix
blob8ac28618b4223091132e5b1f6364999f4ac9f169
1 { buildGoModule
2 , clickhouse-backup
3 , fetchFromGitHub
4 , lib
5 , testers
6 }:
8 buildGoModule rec {
9   pname = "clickhouse-backup";
10   version = "2.4.2";
12   src = fetchFromGitHub {
13     owner = "AlexAkulov";
14     repo = pname;
15     rev = "v${version}";
16     sha256 = "sha256-KJBg64GaWXUV6go8IO9cI82NUeD0j59ySZTTzINo8So=";
17   };
19   vendorHash = "sha256-u3UtrsHohuQrSk4ypMXasLPYwkcRYMvOdpBpO8PpwZg=";
21   ldflags = [
22     "-X main.version=${version}"
23   ];
25   postConfigure = ''
26     export CGO_ENABLED=0
27   '';
29   passthru.tests.version = testers.testVersion {
30     package = clickhouse-backup;
31   };
33   meta = with lib; {
34     description = "Tool for easy ClickHouse backup and restore with cloud storages support";
35     homepage = "https://github.com/AlexAkulov/clickhouse-backup";
36     license = licenses.mit;
37     maintainers = with maintainers; [ ];
38     platforms = platforms.linux;
39   };