2023-07-07 05:46:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "virter";
|
2024-11-07 18:13:30 +00:00
|
|
|
version = "0.28.0";
|
2023-07-07 05:46:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LINBIT";
|
|
|
|
repo = "virter";
|
|
|
|
rev = "v${version}";
|
2024-11-07 18:13:30 +00:00
|
|
|
hash = "sha256-/AhC7eQE9ITvXcK228ZgcIOaSs0osjdFZI/0jHL7mqc=";
|
2023-07-07 05:46:51 +00:00
|
|
|
};
|
|
|
|
|
2024-11-07 18:13:30 +00:00
|
|
|
vendorHash = "sha256-v3rM45hijJKNxW43VhwcL3R2heZLA70RzqBXYeOYgRY=";
|
2023-07-07 05:46:51 +00:00
|
|
|
|
|
|
|
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 = "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 ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "virter";
|
2023-07-07 05:46:51 +00:00
|
|
|
};
|
|
|
|
}
|