summary refs log tree commit diff
path: root/pkgs/applications/blockchains
diff options
context:
space:
mode:
authorMartin Milata <martin@martinmilata.cz>2021-05-26 00:52:49 +0200
committerMartin Milata <martin@martinmilata.cz>2021-06-02 13:09:19 +0200
commit43031a05d2e2b08ed5f98b3f5255e7d76ef4e403 (patch)
tree8c19e4e5c7d3e4b6439250171b86fd4c12554c93 /pkgs/applications/blockchains
parent34595fbd3974a10bc37bcfdb47b5beaedfe14b5b (diff)
downloadnixpkgs-43031a05d2e2b08ed5f98b3f5255e7d76ef4e403.tar
nixpkgs-43031a05d2e2b08ed5f98b3f5255e7d76ef4e403.tar.gz
nixpkgs-43031a05d2e2b08ed5f98b3f5255e7d76ef4e403.tar.bz2
nixpkgs-43031a05d2e2b08ed5f98b3f5255e7d76ef4e403.tar.lz
nixpkgs-43031a05d2e2b08ed5f98b3f5255e7d76ef4e403.tar.xz
nixpkgs-43031a05d2e2b08ed5f98b3f5255e7d76ef4e403.tar.zst
nixpkgs-43031a05d2e2b08ed5f98b3f5255e7d76ef4e403.zip
charge-lnd: init at 0.1.2
Diffstat (limited to 'pkgs/applications/blockchains')
-rw-r--r--pkgs/applications/blockchains/charge-lnd/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/charge-lnd/default.nix b/pkgs/applications/blockchains/charge-lnd/default.nix
new file mode 100644
index 00000000000..3707b0741b6
--- /dev/null
+++ b/pkgs/applications/blockchains/charge-lnd/default.nix
@@ -0,0 +1,39 @@
+{ lib, fetchFromGitHub, python3Packages }:
+
+python3Packages.buildPythonApplication rec {
+  pname = "charge-lnd";
+  version = "0.1.2";
+
+  src = fetchFromGitHub {
+    owner = "accumulator";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1m1ic69aj2vlnjlp4ckan8n67r01nfysvq4w6nny32wjkr0zvphr";
+  };
+
+  propagatedBuildInputs = with python3Packages; [
+    aiorpcx
+    colorama
+    googleapis-common-protos
+    grpcio
+    protobuf
+    six
+    termcolor
+  ];
+
+  postInstall = ''
+    install README.md charge.config.example -Dt $out/share/doc/charge-lnd
+  '';
+
+  doInstallCheck = true;
+  installCheckPhase = ''
+    $out/bin/charge-lnd --help > /dev/null
+  '';
+
+  meta = with lib; {
+    description = "Simple policy-based fee manager for lightning network daemon";
+    homepage = "https://github.com/accumulator/charge-lnd";
+    license = licenses.gpl2Plus;
+    maintainers = with maintainers; [ mmilata ];
+  };
+}