Skip to content

Commit

Permalink
elementsd: 0.18.1.3 -> 0.18.1.7
Browse files Browse the repository at this point in the history
Also includes `get-sha256.sh` to easily determine verified sha256's
  • Loading branch information
nixbitcoin committed Jul 10, 2020
1 parent 3cbb691 commit 5d66d2f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/elementsd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
with stdenv.lib;
stdenv.mkDerivation rec{
name = "elements" + (toString (optional (!withGui) "d")) + "-" + version;
version = "0.18.1.3";
version = "0.18.1.7";

src = fetchurl {
urls = [
"https://github.com/ElementsProject/elements/archive/elements-${version}.tar.gz"
];
sha256 = "b51d6ee89cf97ae3b19263dc23c576fd690386b1b2850360d595e24159fc0452";
sha256 = "faa1ce81c77f34ada171b1aa7290c499ac936db3a9e22eef99257ea8716b19dd";
};

nativeBuildInputs =
Expand Down
24 changes: 24 additions & 0 deletions pkgs/elementsd/get-sha256.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p git gnupg
set -euo pipefail

TMPDIR="$(mktemp -d -p /tmp)"
trap "rm -rf $TMPDIR" EXIT
cd $TMPDIR

echo "Fetching latest release"
git clone https://github.com/elementsproject/elements 2> /dev/null
cd elements
latest=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "Latest release is ${latest}"

# GPG verification
export GNUPGHOME=$TMPDIR
echo "Fetching Steven Roose's Key"
gpg --keyserver hkps://hkps.pool.sks-keyservers.net --recv-keys DE10E82629A8CAD55B700B972F2A88D7F8D68E87 2> /dev/null
echo "Verifying latest release"
git verify-tag ${latest}

echo "tag: ${latest}"
# The prefix option is necessary because GitHub prefixes the archive contents in this format
echo "sha256: $(git archive --format tar.gz --prefix=elements-${latest}/ ${latest} | sha256sum | cut -d\ -f1)"

0 comments on commit 5d66d2f

Please sign in to comment.