You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
967 B
44 lines
967 B
2 years ago
|
{ buildGoModule
|
||
|
, fetchFromGitHub
|
||
|
, lib
|
||
|
, testers
|
||
|
, kubevirt
|
||
|
}:
|
||
|
|
||
|
buildGoModule rec {
|
||
|
pname = "kubevirt";
|
||
|
version = "0.52.0";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "kubevirt";
|
||
|
repo = "kubevirt";
|
||
|
rev = "v${version}";
|
||
|
sha256 = "0ldc13nypbk3r9ihbdfibpyvzyzz4m68zzb7g6cq551ks9qdiyma";
|
||
|
};
|
||
|
|
||
|
vendorSha256 = null;
|
||
|
|
||
|
subPackages = [ "cmd/virtctl" ];
|
||
|
|
||
|
tags = [ "selinux" ];
|
||
|
|
||
|
ldflags = [
|
||
|
"-X kubevirt.io/client-go/version.gitCommit=v${version}"
|
||
|
"-X kubevirt.io/client-go/version.gitTreeState=clean"
|
||
|
"-X kubevirt.io/client-go/version.gitVersion=v${version}"
|
||
|
];
|
||
|
|
||
|
passthru.tests.version = testers.testVersion {
|
||
|
package = kubevirt;
|
||
|
command = "virtctl version --client";
|
||
|
version = "v${version}";
|
||
|
};
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Client tool to use advanced features such as console access";
|
||
|
homepage = "https://kubevirt.io/";
|
||
|
license = licenses.asl20;
|
||
|
maintainers = with maintainers; [ haslersn ];
|
||
|
};
|
||
|
}
|