0
0
Fork 0
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:
Peder Bergebakken Sundt 2025-06-05 19:55:54 +02:00 committed by GitHub
commit 41a901e46c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
];
};
}
})