depot/third_party/nixpkgs/pkgs/tools/misc/balanceofsatoshis/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

45 lines
1.1 KiB
Nix

{ lib
, buildNpmPackage
, fetchFromGitHub
, installShellFiles
, python3
}:
buildNpmPackage rec {
pname = "balanceofsatoshis";
version = "15.8.15";
src = fetchFromGitHub {
owner = "alexbosworth";
repo = "balanceofsatoshis";
rev = "v${version}";
hash = "sha256-8GWITeFn7ELUH7bxcNlmQvgperQutBwVUhp2yjeEWrM=";
};
npmDepsHash = "sha256-lTXv4pEjrzcOK68RO1K007r7dCbAyc45G8Oy8V3XLts=";
nativeBuildInputs = [
installShellFiles
python3
];
dontNpmBuild = true;
npmFlags = [ "--ignore-scripts" ];
postInstall = ''
installShellCompletion --cmd bos \
--bash <($out/bin/bos completion bash) \
--zsh <($out/bin/bos completion zsh) \
--fish <($out/bin/bos completion fish)
'';
meta = {
changelog = "https://github.com/alexbosworth/balanceofsatoshis/blob/${src.rev}/CHANGELOG.md";
description = "Tool for working with the balance of your satoshis on LND";
homepage = "https://github.com/alexbosworth/balanceofsatoshis";
license = lib.licenses.mit;
mainProgram = "bos";
maintainers = with lib.maintainers; [ mmilata ];
};
}