nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "virter";
9 version = "0.29.0";
10
11 src = fetchFromGitHub {
12 owner = "LINBIT";
13 repo = "virter";
14 rev = "v${version}";
15 hash = "sha256-zEdG1n+tsDzyMTHBCikZaMalEhqdQiQvcsbElrbd1H4=";
16 };
17
18 vendorHash = "sha256-67eFCrAs8oQ+PPEAB+hl5bipH0TpHvW07aqC0ljAlBM=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 "-X github.com/LINBIT/virter/cmd.version=${version}"
24 "-X github.com/LINBIT/virter/cmd.builddate=builtByNix"
25 "-X github.com/LINBIT/virter/cmd.githash=builtByNix"
26 ];
27
28 # requires network access
29 doCheck = false;
30
31 meta = {
32 description = "Command line tool for simple creation and cloning of virtual machines based on libvirt";
33 homepage = "https://github.com/LINBIT/virter";
34 license = lib.licenses.asl20;
35 maintainers = with lib.maintainers; [ dit7ya ];
36 mainProgram = "virter";
37 };
38}