1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "wire";
5 version = "0.5.0";
6
7 src = fetchFromGitHub {
8 owner = "google";
9 repo = "wire";
10 rev = "v${version}";
11 sha256 = "sha256-9xjymiyPFMKbysgZULmcBEMI26naUrLMgTA+d7Q+DA0=";
12 };
13
14 vendorSha256 = "sha256-ZFUX4LgPte6oAf94D82Man/P9VMpx+CDNCTMBwiy9Fc=";
15
16 subPackages = [ "cmd/wire" ];
17
18 meta = with lib; {
19 homepage = "https://github.com/google/wire";
20 description = "A code generation tool that automates connecting components using dependency injection";
21 license = licenses.asl20;
22 maintainers = with maintainers; [ svrana ];
23 };
24}