Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / bird-lg / default.nix
blobb459e0b304afd6708992742e69fd956f119d0e79
1 { buildGoModule, fetchFromGitHub, lib, symlinkJoin }:
2 let
3   generic = { modRoot, vendorHash }:
4     buildGoModule rec {
5       pname = "bird-lg-${modRoot}";
6       version = "1.3.5";
8       src = fetchFromGitHub {
9         owner = "xddxdd";
10         repo = "bird-lg-go";
11         rev = "v${version}";
12         hash = "sha256-lWpTIuN+wCSDBHmpRIfVG8Z1Qx1s55MnJomQPjczB5k=";
13       };
15       doDist = false;
17       ldflags = [
18         "-s"
19         "-w"
20       ];
22       inherit modRoot vendorHash;
24       meta = with lib; {
25         description = "Bird Looking Glass";
26         homepage = "https://github.com/xddxdd/bird-lg-go";
27         changelog = "https://github.com/xddxdd/bird-lg-go/releases/tag/v${version}";
28         license = licenses.gpl3Plus;
29         maintainers = with maintainers; [
30           tchekda
31           e1mo
32         ];
33       };
34     };
36   bird-lg-frontend = generic {
37     modRoot = "frontend";
38     vendorHash = "sha256-+M9Mlqck2E/ETW+NXsKwIeWlmZAaBU07fgDhKUU9PAI=";
39   };
41   bird-lg-proxy = generic {
42     modRoot = "proxy";
43     vendorHash = "sha256-nBTLQUX68f98D0RTlyX0gnvhQ+bu8d3Vv67J/YoXJxs=";
44   };
46 symlinkJoin {
47   name = "bird-lg-${bird-lg-frontend.version}";
48   paths = [ bird-lg-frontend bird-lg-proxy ];
49 } // {
50   inherit (bird-lg-frontend) version meta;