nixpkgs/pkgs/servers/bird-lg/default.nix

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

52 lines
1.2 KiB
Nix
Raw Normal View History

2022-05-09 00:34:56 +00:00
{ buildGoModule, fetchFromGitHub, lib, symlinkJoin }:
let
generic = { modRoot, vendorSha256 }:
buildGoModule rec {
pname = "bird-lg-${modRoot}";
version = "1.3.1";
2022-05-19 09:37:12 +00:00
src = fetchFromGitHub {
owner = "xddxdd";
repo = "bird-lg-go";
rev = "v${version}";
hash = "sha256-ROMwgsKroxd9qkKX8ZoOuazBrnZytcTAPT9hR/v6a04=";
2022-05-19 09:37:12 +00:00
};
2022-05-09 00:34:56 +00:00
doDist = false;
ldflags = [
"-s"
"-w"
];
2022-05-19 09:37:12 +00:00
inherit modRoot vendorSha256;
2022-05-09 00:34:56 +00:00
meta = with lib; {
description = "Bird Looking Glass";
homepage = "https://github.com/xddxdd/bird-lg-go";
2023-04-14 12:41:09 +00:00
changelog = "https://github.com/xddxdd/bird-lg-go/releases/tag/v${version}";
2022-05-09 00:34:56 +00:00
license = licenses.gpl3Plus;
2023-06-19 15:35:30 +00:00
maintainers = with maintainers; [
tchekda
e1mo
];
2022-05-09 00:34:56 +00:00
};
};
bird-lg-frontend = generic {
modRoot = "frontend";
vendorSha256 = "sha256-yyH6McVzU0Qiod3yP5pGlF36fJQlf4g52wfDAem6KWs=";
2022-05-09 00:34:56 +00:00
};
bird-lg-proxy = generic {
modRoot = "proxy";
vendorSha256 = "sha256-JfHvDIVKQ7jdPocuh6AOwSQmP+a0/hXYrt5Ap/pEjug=";
2022-05-09 00:34:56 +00:00
};
in
2023-04-14 12:41:09 +00:00
symlinkJoin {
name = "bird-lg-${bird-lg-frontend.version}";
paths = [ bird-lg-frontend bird-lg-proxy ];
} // {
inherit (bird-lg-frontend) version meta;
}