nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 34 lines 721 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule (finalAttrs: { 8 pname = "wire"; 9 version = "0.7.0"; 10 11 src = fetchFromGitHub { 12 owner = "google"; 13 repo = "wire"; 14 tag = "v${finalAttrs.version}"; 15 hash = "sha256-pKWi5qRCSgWdGwEzoV0nx2t1HUODBaC6ELyf//+fPog="; 16 }; 17 18 vendorHash = "sha256-pUzYfFrKV0M1j1P6DVIGCe6FaY+OPbn5VNLHP0Xu2R0="; 19 20 subPackages = [ "cmd/wire" ]; 21 22 ldflags = [ 23 "-s" 24 "-w" 25 ]; 26 27 meta = { 28 homepage = "https://github.com/google/wire"; 29 description = "Code generation tool that automates connecting components using dependency injection"; 30 mainProgram = "wire"; 31 license = lib.licenses.asl20; 32 maintainers = with lib.maintainers; [ svrana ]; 33 }; 34})