2021-01-05 17:05:55 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "wire";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "0.5.0";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "wire";
|
|
|
|
rev = "v${version}";
|
2021-02-13 14:23:35 +00:00
|
|
|
sha256 = "sha256-9xjymiyPFMKbysgZULmcBEMI26naUrLMgTA+d7Q+DA0=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
vendorSha256 = "sha256-ZFUX4LgPte6oAf94D82Man/P9VMpx+CDNCTMBwiy9Fc=";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/wire" ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|