1{
2 buildGoModule,
3 fetchFromGitHub,
4 lib,
5 tags ? [
6 # `RELEASE_TAGS` from https://github.com/lightningnetwork/lnd/blob/master/make/release_flags.mk
7 "autopilotrpc"
8 "chainrpc"
9 "invoicesrpc"
10 "kvdb_etcd"
11 "kvdb_postgres"
12 "kvdb_sqlite"
13 "monitoring"
14 "neutrinorpc"
15 "peersrpc"
16 "signrpc"
17 "walletrpc"
18 "watchtowerrpc"
19 # Extra tags useful for testing
20 "routerrpc"
21 ],
22}:
23
24buildGoModule rec {
25 pname = "lnd";
26 version = "0.19.2-beta";
27
28 src = fetchFromGitHub {
29 owner = "lightningnetwork";
30 repo = "lnd";
31 rev = "v${version}";
32 hash = "sha256-LUBUODPKXqU/wzQhjmC0NfvM284sD5dc7iQFSsdzyyI=";
33 };
34
35 vendorHash = "sha256-3eOKZ/NgSPrtYfDYUTDnVVb7EyMz8s+mtFo2UMyieHY=";
36
37 subPackages = [
38 "cmd/lncli"
39 "cmd/lnd"
40 ];
41
42 inherit tags;
43
44 meta = with lib; {
45 description = "Lightning Network Daemon";
46 homepage = "https://github.com/lightningnetwork/lnd";
47 license = licenses.mit;
48 maintainers = with maintainers; [
49 bleetube
50 cypherpunk2140
51 prusnak
52 ];
53 };
54}