summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/fa/faraday/package.nix
blob: 635ee664809cc21de54f6ba61aea70d751067bc3 (plain)
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
{
  buildGoModule,
  fetchFromGitHub,
  lib,
  testers,
  faraday,
}:

buildGoModule (finalAttrs: {
  pname = "faraday";
  version = "0.2.14-alpha";

  src = fetchFromGitHub {
    owner = "lightninglabs";
    repo = "faraday";
    rev = "v${finalAttrs.version}";
    hash = "sha256-7sCNHrtDDpxpcxmHTVq8reHjNMXKyxPbYM6H6Eqo+OY=";
  };

  vendorHash = "sha256-xlyZEcFphXAV+7iHmJBZiQWKKBDm1cpE2Eax2fWYd0Y=";

  subPackages = [
    "cmd/frcli"
    "cmd/faraday"
  ];

  ldflags = [
    "-s"
    "-w"
  ];

  passthru.tests.version = testers.testVersion {
    package = faraday;
  };

  meta = {
    description = "LND Channel Management Tools";
    homepage = "https://github.com/lightninglabs/faraday";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ proofofkeags ];
  };
})