diff options
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/blockchains/lndhub-go/default.nix | 39 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/lndhub-go/default.nix b/pkgs/applications/blockchains/lndhub-go/default.nix new file mode 100644 index 0000000000000..ed823f9b9c025 --- /dev/null +++ b/pkgs/applications/blockchains/lndhub-go/default.nix @@ -0,0 +1,39 @@ +{ lib +, stdenv +, buildGoModule +, fetchFromGitHub +, fetchpatch +}: + +buildGoModule rec { + pname = "lndhub-go"; + version = "0.7.0"; + + src = fetchFromGitHub { + owner = "getAlby"; + repo = "lndhub.go"; + rev = "${version}"; + sha256 = "sha256-CQVHU3gIIiucrz9TA2ltPNmj6d22vbraktBoyTHTQ1k="; + }; + + patches = [ + # fix inconsistent vendoring + # https://github.com/getAlby/lndhub.go/pull/184 + (fetchpatch { + url = "https://github.com/getAlby/lndhub.go/commit/2ee7ace9385f8626eb15cbf653ccd46423b5a9c5.patch"; + sha256 = "sha256-1ESPlCTzpFbqshzS6xF4apY8Doz9GvEbZe93Z93P9EI="; + }) + ]; + + vendorSha256 = "sha256-bp5q8K7OpvNo28jojaPPj53hUe+me4oLwDBkgZk+0Ec="; + + doCheck = false; # tests require networking + + meta = with lib; { + description = "Accounting wrapper for the Lightning Network"; + homepage = "https://github.com/getAlby/lndhub.go"; + license = licenses.gpl3; + maintainers = with maintainers; [ prusnak ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9bf309cb10e36..e0d135a207716 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31244,6 +31244,8 @@ with pkgs; lndconnect = callPackage ../applications/blockchains/lndconnect { }; + lndhub-go = callPackage ../applications/blockchains/lndhub-go { }; + lndmanage = callPackage ../applications/blockchains/lndmanage { }; monero-cli = callPackage ../applications/blockchains/monero-cli { |