2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2020-09-21 06:12:06 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "velero";
|
2020-10-30 03:24:34 +00:00
|
|
|
version = "1.5.2";
|
2020-09-21 06:12:06 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "vmware-tanzu";
|
|
|
|
repo = "velero";
|
2020-10-30 03:24:34 +00:00
|
|
|
sha256 = "1hfi1iipbval0c0c0nnf6fz5n76za0vwczm5lq86sddqnznbvsrz";
|
2020-09-21 06:12:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-s -w
|
|
|
|
-X github.com/vmware-tanzu/velero/pkg/buildinfo.Version=${version}
|
2020-10-30 03:24:34 +00:00
|
|
|
-X github.com/vmware-tanzu/velero/pkg/buildinfo.GitSHA=456eb19668f8da603756353d9179b59b5a7bfa04
|
2020-09-21 06:12:06 +01:00
|
|
|
-X github.com/vmware-tanzu/velero/pkg/buildinfo.GitTreeState=clean
|
|
|
|
'';
|
|
|
|
|
|
|
|
vendorSha256 = "1izl7z689jf3i3wax7rfpk0jjly7nsi7vzasy1j9v5cwjy2d5z4v";
|
|
|
|
|
|
|
|
excludedPackages = [ "issue-template-gen" ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
2020-11-15 21:13:06 +00:00
|
|
|
$out/bin/velero completion bash > velero.bash
|
|
|
|
$out/bin/velero completion zsh > velero.zsh
|
|
|
|
installShellCompletion velero.{bash,zsh}
|
2020-09-21 06:12:06 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-09-21 06:12:06 +01:00
|
|
|
description =
|
|
|
|
"A utility for managing disaster recovery, specifically for your Kubernetes cluster resources and persistent volumes";
|
|
|
|
homepage = "https://velero.io/";
|
|
|
|
changelog =
|
|
|
|
"https://github.com/vmware-tanzu/velero/releases/tag/v${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.mbode maintainers.bryanasdev000 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|