2022-05-09 00:34:56 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, symlinkJoin }:
|
|
|
|
let
|
|
|
|
generic = { modRoot, vendorSha256 }:
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "bird-lg-${modRoot}";
|
2023-04-14 12:09:49 +00:00
|
|
|
version = "1.2.0";
|
2022-05-19 09:37:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xddxdd";
|
|
|
|
repo = "bird-lg-go";
|
2023-04-14 12:09:49 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-Ldp/c1UU5EFnKjlUqQ+Hh6rVEOYEX7kaDL36edr9pNA=";
|
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;
|
|
|
|
maintainers = with maintainers; [ tchekda ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
bird-lg-frontend = generic {
|
|
|
|
modRoot = "frontend";
|
2023-04-14 12:09:49 +00:00
|
|
|
vendorSha256 = "sha256-lYOi3tfXYhsFaWgikDUoJYRm8sxFNFKiFQMlVx/8AkA=";
|
2022-05-09 00:34:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
bird-lg-proxy = generic {
|
|
|
|
modRoot = "proxy";
|
2023-04-14 12:09:49 +00:00
|
|
|
vendorSha256 = "sha256-QHLq4RuQaCMjefs7Vl7zSVgjLMDXvIZcM8d6/B5ECZc=";
|
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;
|
|
|
|
}
|