electrs: replace local version with nixpkgs
This commit is contained in:
parent
9588b0af08
commit
7ae0a38701
@ -1,7 +1,6 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
let self = {
|
||||
spark-wallet = pkgs.callPackage ./spark-wallet { };
|
||||
electrs = pkgs.callPackage ./electrs { };
|
||||
elementsd = pkgs.callPackage ./elementsd { withGui = false; };
|
||||
liquid-swap = pkgs.python3Packages.callPackage ./liquid-swap { };
|
||||
joinmarket = pkgs.callPackage ./joinmarket { inherit (self) nbPython3Packages; };
|
||||
|
@ -1,24 +0,0 @@
|
||||
{ lib, rustPlatform, llvmPackages, fetchurl, pkgs }:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "electrs";
|
||||
version = "0.8.9";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/romanz/electrs/archive/v${version}.tar.gz";
|
||||
# Use ./get-sha256.sh to fetch latest (verified) sha256
|
||||
sha256 = "e28367127bca9d5444b1061ba7cbf2636788b1db80977da05cd7ba2182dde2ca";
|
||||
};
|
||||
|
||||
# Needed for librocksdb-sys
|
||||
nativeBuildInputs = [ llvmPackages.clang ];
|
||||
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
|
||||
|
||||
cargoSha256 = "07bh5mdmi70gy8bmwjzw87d4kc12d5aciiq3slgc07fvhc7nrlmx";
|
||||
|
||||
meta = with lib; {
|
||||
description = "An efficient Electrum Server in Rust";
|
||||
homepage = "https://github.com/romanz/electrs";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ earvstedt ];
|
||||
};
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
#! /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/romanz/electrs 2> /dev/null
|
||||
cd electrs
|
||||
latest=$(git describe --tags `git rev-list --tags --max-count=1`)
|
||||
echo "Latest release is ${latest}"
|
||||
|
||||
# GPG verification
|
||||
export GNUPGHOME=$TMPDIR
|
||||
echo "Fetching Roman Zeyde's Key"
|
||||
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys 15c8c3574ae4f1e25f3f35c587cae5fa46917cbb 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=electrs-"${latest//v}"/ ${latest} | sha256sum | cut -d\ -f1)"
|
@ -14,6 +14,7 @@ in
|
||||
lndconnect
|
||||
nbxplorer
|
||||
btcpayserver
|
||||
electrs
|
||||
hwi;
|
||||
|
||||
stable = nixBitcoinPkgsStable;
|
||||
|
@ -3,7 +3,6 @@ let
|
||||
pkgs = import pinned.nixpkgs-unstable {};
|
||||
nbPkgs = import ../pkgs { inherit pkgs; };
|
||||
pkgsUnstable = with nbPkgs; [
|
||||
electrs
|
||||
joinmarket
|
||||
lightning-loop
|
||||
lightning-pool
|
||||
|
Loading…
Reference in New Issue
Block a user