forked from mirrors/nixpkgs
Merge pull request #98371 from bryanasdev000/package-velero
velero: init at 1.5.1
This commit is contained in:
commit
4bcd1dcd2c
|
@ -1,25 +0,0 @@
|
|||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "heptio-ark";
|
||||
version = "0.10.0";
|
||||
|
||||
goPackagePath = "github.com/heptio/ark";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
rev = "v${version}";
|
||||
owner = "heptio";
|
||||
repo = "ark";
|
||||
sha256 = "18h9hvp95va0hyl268gnzciwy1dqmc57bpifbj885870rdfp0ffv";
|
||||
};
|
||||
|
||||
excludedPackages = [ "issue-template-gen" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A utility for managing disaster recovery, specifically for your Kubernetes cluster resources and persistent volumes";
|
||||
homepage = "https://heptio.github.io/ark/";
|
||||
license = licenses.asl20;
|
||||
maintainers = [maintainers.mbode];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
45
pkgs/applications/networking/cluster/velero/default.nix
Normal file
45
pkgs/applications/networking/cluster/velero/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "velero";
|
||||
version = "1.5.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
rev = "v${version}";
|
||||
owner = "vmware-tanzu";
|
||||
repo = "velero";
|
||||
sha256 = "1rmymwmglcia5j0c692g34hlffba1yqs2s0iyjpafma2zabrcnai";
|
||||
};
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-s -w
|
||||
-X github.com/vmware-tanzu/velero/pkg/buildinfo.Version=${version}
|
||||
-X github.com/vmware-tanzu/velero/pkg/buildinfo.GitSHA=87d86a45a6ca66c6c942c7c7f08352e26809426c
|
||||
-X github.com/vmware-tanzu/velero/pkg/buildinfo.GitTreeState=clean
|
||||
'';
|
||||
|
||||
vendorSha256 = "1izl7z689jf3i3wax7rfpk0jjly7nsi7vzasy1j9v5cwjy2d5z4v";
|
||||
|
||||
excludedPackages = [ "issue-template-gen" ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
postInstall = ''
|
||||
$out/bin/velero completion bash > helm.bash
|
||||
$out/bin/velero completion zsh > helm.zsh
|
||||
installShellCompletion helm.{bash,zsh}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
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;
|
||||
};
|
||||
}
|
|
@ -26942,7 +26942,7 @@ in
|
|||
|
||||
helmsman = callPackage ../applications/networking/cluster/helmsman { };
|
||||
|
||||
heptio-ark = callPackage ../applications/networking/cluster/heptio-ark { };
|
||||
velero = callPackage ../applications/networking/cluster/velero { };
|
||||
|
||||
hplip = callPackage ../misc/drivers/hplip { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue