2023-01-15 18:19:39 +01:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
2023-01-19 19:56:18 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2023-01-15 18:19:39 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "torq";
|
2023-01-28 22:22:40 +01:00
|
|
|
version = "0.17.3";
|
2023-01-15 18:19:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lncapital";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-01-28 22:22:40 +01:00
|
|
|
hash = "sha256-fqHJZi1NQCrZqsa+N+FVYZ8s9o0D555Sqn5qNlJ1MmI=";
|
2023-01-15 18:19:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorHash = "sha256-HETN2IMnpxnTyg6bQDpoD0saJu+gKocdEf0VzEi12Gs=";
|
|
|
|
|
|
|
|
subPackages = [ "cmd/torq" ];
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2023-01-19 19:56:18 +01:00
|
|
|
"-X github.com/lncapital/torq/build.version=v${version}"
|
2023-01-15 18:19:39 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Capital management tool for lightning network nodes";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://github.com/lncapital/torq";
|
|
|
|
maintainers = with maintainers; [ mmilata prusnak ];
|
|
|
|
};
|
|
|
|
}
|