blob: b4ce72332d9788a6c0b75a89d25c3ee79be2ae3b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{ buildGoModule, fetchFromGitHub, lib, symlinkJoin }:
let
generic = { modRoot, vendorHash }:
buildGoModule rec {
pname = "bird-lg-${modRoot}";
version = "1.3.1";
src = fetchFromGitHub {
owner = "xddxdd";
repo = "bird-lg-go";
rev = "v${version}";
hash = "sha256-ROMwgsKroxd9qkKX8ZoOuazBrnZytcTAPT9hR/v6a04=";
};
doDist = false;
ldflags = [
"-s"
"-w"
];
inherit modRoot vendorHash;
meta = with lib; {
description = "Bird Looking Glass";
homepage = "https://github.com/xddxdd/bird-lg-go";
changelog = "https://github.com/xddxdd/bird-lg-go/releases/tag/v${version}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [
tchekda
e1mo
];
};
};
bird-lg-frontend = generic {
modRoot = "frontend";
vendorHash = "sha256-yyH6McVzU0Qiod3yP5pGlF36fJQlf4g52wfDAem6KWs=";
};
bird-lg-proxy = generic {
modRoot = "proxy";
vendorHash = "sha256-JfHvDIVKQ7jdPocuh6AOwSQmP+a0/hXYrt5Ap/pEjug=";
};
in
symlinkJoin {
name = "bird-lg-${bird-lg-frontend.version}";
paths = [ bird-lg-frontend bird-lg-proxy ];
} // {
inherit (bird-lg-frontend) version meta;
}
|