summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/wi/wire/package.nix
blob: ba932e591654d4ebfe4953195f412d1bf3e89baa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  buildGoModule,
  fetchFromGitHub,
}:

buildGoModule (finalAttrs: {
  pname = "wire";
  version = "0.7.0";

  src = fetchFromGitHub {
    owner = "google";
    repo = "wire";
    tag = "v${finalAttrs.version}";
    hash = "sha256-pKWi5qRCSgWdGwEzoV0nx2t1HUODBaC6ELyf//+fPog=";
  };

  vendorHash = "sha256-pUzYfFrKV0M1j1P6DVIGCe6FaY+OPbn5VNLHP0Xu2R0=";

  subPackages = [ "cmd/wire" ];

  ldflags = [
    "-s"
    "-w"
  ];

  meta = {
    homepage = "https://github.com/google/wire";
    description = "Code generation tool that automates connecting components using dependency injection";
    mainProgram = "wire";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ svrana ];
  };
})