evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / vi / virter / package.nix
blob2b172cfe3d26853e01072052731aec5cabd7b3a0
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "virter";
8   version = "0.28.0";
10   src = fetchFromGitHub {
11     owner = "LINBIT";
12     repo = "virter";
13     rev = "v${version}";
14     hash = "sha256-/AhC7eQE9ITvXcK228ZgcIOaSs0osjdFZI/0jHL7mqc=";
15   };
17   vendorHash = "sha256-v3rM45hijJKNxW43VhwcL3R2heZLA70RzqBXYeOYgRY=";
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 = "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     mainProgram = "virter";
36   };