2022-05-09 02:34:56 +02:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, symlinkJoin }:
|
|
|
|
let
|
2023-09-13 06:44:46 +02:00
|
|
|
generic = { modRoot, vendorHash }:
|
2022-05-09 02:34:56 +02:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "bird-lg-${modRoot}";
|
2024-02-27 23:39:51 +01:00
|
|
|
version = "1.3.5";
|
2022-05-19 11:37:12 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xddxdd";
|
|
|
|
repo = "bird-lg-go";
|
2023-04-14 14:09:49 +02:00
|
|
|
rev = "v${version}";
|
2024-02-27 23:39:51 +01:00
|
|
|
hash = "sha256-lWpTIuN+wCSDBHmpRIfVG8Z1Qx1s55MnJomQPjczB5k=";
|
2022-05-19 11:37:12 +02:00
|
|
|
};
|
2022-05-09 02:34:56 +02:00
|
|
|
|
|
|
|
doDist = false;
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
];
|
|
|
|
|
2023-09-13 06:44:46 +02:00
|
|
|
inherit modRoot vendorHash;
|
2022-05-09 02:34:56 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Bird Looking Glass";
|
|
|
|
homepage = "https://github.com/xddxdd/bird-lg-go";
|
2023-04-14 14:41:09 +02:00
|
|
|
changelog = "https://github.com/xddxdd/bird-lg-go/releases/tag/v${version}";
|
2022-05-09 02:34:56 +02:00
|
|
|
license = licenses.gpl3Plus;
|
2023-06-19 17:35:30 +02:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
tchekda
|
|
|
|
e1mo
|
|
|
|
];
|
2022-05-09 02:34:56 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
bird-lg-frontend = generic {
|
|
|
|
modRoot = "frontend";
|
2024-02-27 23:39:51 +01:00
|
|
|
vendorHash = "sha256-+M9Mlqck2E/ETW+NXsKwIeWlmZAaBU07fgDhKUU9PAI=";
|
2022-05-09 02:34:56 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
bird-lg-proxy = generic {
|
|
|
|
modRoot = "proxy";
|
2024-02-27 23:39:51 +01:00
|
|
|
vendorHash = "sha256-nBTLQUX68f98D0RTlyX0gnvhQ+bu8d3Vv67J/YoXJxs=";
|
2022-05-09 02:34:56 +02:00
|
|
|
};
|
|
|
|
in
|
2023-04-14 14:41:09 +02:00
|
|
|
symlinkJoin {
|
|
|
|
name = "bird-lg-${bird-lg-frontend.version}";
|
|
|
|
paths = [ bird-lg-frontend bird-lg-proxy ];
|
|
|
|
} // {
|
|
|
|
inherit (bird-lg-frontend) version meta;
|
|
|
|
}
|