diff --git a/pkgs/applications/blockchains/torq/default.nix b/pkgs/applications/blockchains/torq/default.nix new file mode 100644 index 000000000000..b00e39c23100 --- /dev/null +++ b/pkgs/applications/blockchains/torq/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildGoModule +, fetchFromGitHub }: + +buildGoModule rec { + pname = "torq"; + version = "0.16.9"; + + src = fetchFromGitHub { + owner = "lncapital"; + repo = pname; + rev = "v${version}"; + hash = "sha256-jr4DNjHP8xVtl0Y1egVUmvzLRR6YjyUqvvhOAZNKFu0="; + }; + + vendorHash = "sha256-HETN2IMnpxnTyg6bQDpoD0saJu+gKocdEf0VzEi12Gs="; + + subPackages = [ "cmd/torq" ]; + + ldflags = [ + "-s" + "-w" + "-X github.com/lncapital/torq/build.Repository=github.com/${src.owner}/${src.repo}" + "-X github.com/lncapital/torq/build.overrideBuildVer=${version}" + ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 827f4ae4257e..48bfcec9335e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -34198,6 +34198,8 @@ with pkgs; tessera = callPackage ../applications/blockchains/tessera { }; + torq = callPackage ../applications/blockchains/torq { }; + vertcoin = libsForQt5.callPackage ../applications/blockchains/vertcoin { boost = boost17x; withGui = true;