mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
velero: remove with lib; (#414006)
This commit is contained in:
commit
41a901e46c
1 changed files with 12 additions and 12 deletions
|
@ -6,21 +6,21 @@
|
|||
installShellFiles,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "velero";
|
||||
version = "1.16.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vmware-tanzu";
|
||||
repo = "velero";
|
||||
rev = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-KfVMWoBScpHINmT5PlnPY+I5Ec1NRgEXKMtL0M7WyhE=";
|
||||
};
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/vmware-tanzu/velero/pkg/buildinfo.Version=v${version}"
|
||||
"-X github.com/vmware-tanzu/velero/pkg/buildinfo.Version=v${finalAttrs.version}"
|
||||
"-X github.com/vmware-tanzu/velero/pkg/buildinfo.ImageRegistry=velero"
|
||||
"-X github.com/vmware-tanzu/velero/pkg/buildinfo.GitTreeState=clean"
|
||||
"-X github.com/vmware-tanzu/velero/pkg/buildinfo.GitSHA=none"
|
||||
|
@ -38,7 +38,7 @@ buildGoModule rec {
|
|||
doCheck = false; # Tests expect a running cluster see https://github.com/vmware-tanzu/velero/tree/main/test/e2e
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
$out/bin/velero version --client-only | grep ${version} > /dev/null
|
||||
$out/bin/velero version --client-only | grep ${finalAttrs.version} > /dev/null
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
@ -48,14 +48,14 @@ buildGoModule rec {
|
|||
installShellCompletion velero.{bash,zsh}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A utility for managing disaster recovery, specifically for your Kubernetes cluster resources and persistent volumes";
|
||||
meta = {
|
||||
description = "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
|
||||
changelog = "https://github.com/vmware-tanzu/velero/releases/tag/v${finalAttrs.version}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [
|
||||
mbode
|
||||
bryanasdev000
|
||||
];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue