nixpkgs/pkgs/development/tools/wire/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
842 B
Nix
Raw Normal View History

2020-12-31 20:52:10 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "wire";
2024-02-15 06:22:24 +00:00
version = "0.6.0";
2020-12-31 20:52:10 +00:00
src = fetchFromGitHub {
owner = "google";
repo = "wire";
rev = "v${version}";
2024-02-15 06:22:24 +00:00
hash = "sha256-bV/bb577JzGF37HmvRprxr+GWcLLiFRisURwtGDbqko=";
2020-12-31 20:52:10 +00:00
};
2024-02-15 06:22:24 +00:00
patches = [
# Bump the minimum version of Go required to compile packages in this module,
# as `golang.org/x/tools` requires go1.18 or later.
./go-modules.patch
];
vendorHash = "sha256-7IW97ZvCGlKCiVh8mKQutTdAxih7oFkXrKo4h3Pl9YY=";
2020-12-31 20:52:10 +00:00
subPackages = [ "cmd/wire" ];
2024-02-15 06:22:24 +00:00
ldflags = [ "-s" "-w" ];
2020-12-31 20:52:10 +00:00
meta = with lib; {
homepage = "https://github.com/google/wire";
description = "A code generation tool that automates connecting components using dependency injection";
license = licenses.asl20;
maintainers = with maintainers; [ svrana ];
};
}