Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / virtualization / virter / default.nix
blob6a0b94999000f2d34eb013d26e6d71e7c8d8d9b4
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "virter";
8   version = "0.25.0";
10   src = fetchFromGitHub {
11     owner = "LINBIT";
12     repo = "virter";
13     rev = "v${version}";
14     hash = "sha256-NIZBaPYFFH3MG2M7rF39TW8sLVR44SA37ZU3gOPwAFU=";
15   };
17   vendorHash = "sha256-cVOxRrsDdtlDSJ3WRDNk8nqt7ztz4GSRIf6FDDBxvPc=";
19   ldflags = [
20     "-s"
21     "-w"
22     "-X github.com/LINBIT/virter/cmd.version=${version}"
23     "-X github.com/LINBIT/virter/cmd.builddate=builtByNix"
24     "-X github.com/LINBIT/virter/cmd.githash=builtByNix"
25   ];
27   # requires network access
28   doCheck = false;
30   meta = {
31     description = "A command line tool for simple creation and cloning of virtual machines based on libvirt";
32     homepage = "https://github.com/LINBIT/virter";
33     license = lib.licenses.asl20;
34     maintainers = with lib.maintainers; [ dit7ya ];
35   };