2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "virter";
|
|
|
|
version = "0.25.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LINBIT";
|
|
|
|
repo = "virter";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-NIZBaPYFFH3MG2M7rF39TW8sLVR44SA37ZU3gOPwAFU=";
|
|
|
|
};
|
|
|
|
|
|
|
|
vendorHash = "sha256-cVOxRrsDdtlDSJ3WRDNk8nqt7ztz4GSRIf6FDDBxvPc=";
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/LINBIT/virter/cmd.version=${version}"
|
|
|
|
"-X github.com/LINBIT/virter/cmd.builddate=builtByNix"
|
|
|
|
"-X github.com/LINBIT/virter/cmd.githash=builtByNix"
|
|
|
|
];
|
|
|
|
|
|
|
|
# requires network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A command line tool for simple creation and cloning of virtual machines based on libvirt";
|
|
|
|
homepage = "https://github.com/LINBIT/virter";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ dit7ya ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "virter";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|