lndinit: init at 0.1.3-beta
This commit is contained in:
parent
05b8c632f4
commit
e793a3470c
@ -10,6 +10,7 @@ let self = {
|
|||||||
clboss = pkgs.callPackage ./clboss { };
|
clboss = pkgs.callPackage ./clboss { };
|
||||||
clightning-plugins = pkgs.recurseIntoAttrs (import ./clightning-plugins pkgs self.nbPython3Packages);
|
clightning-plugins = pkgs.recurseIntoAttrs (import ./clightning-plugins pkgs self.nbPython3Packages);
|
||||||
joinmarket = pkgs.callPackage ./joinmarket { inherit (self) nbPython3Packages; };
|
joinmarket = pkgs.callPackage ./joinmarket { inherit (self) nbPython3Packages; };
|
||||||
|
lndinit = pkgs.callPackage ./lndinit { };
|
||||||
liquid-swap = pkgs.python3Packages.callPackage ./liquid-swap { };
|
liquid-swap = pkgs.python3Packages.callPackage ./liquid-swap { };
|
||||||
rtl = pkgs.callPackage ./rtl { };
|
rtl = pkgs.callPackage ./rtl { };
|
||||||
# The secp256k1 version used by joinmarket
|
# The secp256k1 version used by joinmarket
|
||||||
|
24
pkgs/lndinit/default.nix
Normal file
24
pkgs/lndinit/default.nix
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{ lib, buildGoModule, fetchFromGitHub }:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "lndinit";
|
||||||
|
version = "0.1.3-beta";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "lightninglabs";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-sO1DpbppCurxr9g9nUl9Vx82FJK1mTcUw3rY1Fm1wEU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "sha256-xdxxixSabcuGzwCctHrP/RV/Z8sCQDmk2PU4j1u8MX8=";
|
||||||
|
|
||||||
|
subPackages = [ "." ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Wallet initializer utility for lnd";
|
||||||
|
homepage = "https://github.com/lightninglabs/lndinit";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ earvstedt ];
|
||||||
|
};
|
||||||
|
}
|
26
pkgs/lndinit/get-sha256.sh
Executable file
26
pkgs/lndinit/get-sha256.sh
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
#! /usr/bin/env nix-shell
|
||||||
|
#! nix-shell -i bash -p git gnupg curl jq
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
TMPDIR="$(mktemp -d -p /tmp)"
|
||||||
|
trap "rm -rf $TMPDIR" EXIT
|
||||||
|
cd $TMPDIR
|
||||||
|
|
||||||
|
echo "Fetching latest release"
|
||||||
|
repo=lightninglabs/lndinit
|
||||||
|
latest=$(curl -s --show-error https://api.github.com/repos/$repo/releases/latest | jq -r .tag_name)
|
||||||
|
echo "Latest release is $latest"
|
||||||
|
git clone --depth 1 --branch $latest https://github.com/lightninglabs/lndinit 2>/dev/null
|
||||||
|
cd lndinit
|
||||||
|
|
||||||
|
# GPG verification
|
||||||
|
export GNUPGHOME=$TMPDIR
|
||||||
|
echo "Fetching Oliver Gugger's key"
|
||||||
|
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys F4FC70F07310028424EFC20A8E4256593F177720 2> /dev/null
|
||||||
|
echo "Verifying latest release"
|
||||||
|
git verify-tag $latest
|
||||||
|
|
||||||
|
echo "tag: $latest"
|
||||||
|
git checkout -q tags/$latest
|
||||||
|
rm -rf .git
|
||||||
|
nix hash path .
|
Loading…
Reference in New Issue
Block a user