electron-cash: 4.0.11 -> 4.0.14

This commit is contained in:
Jaakko Luttinen 2020-03-28 14:17:08 +02:00 committed by Lassulus
parent c2b0601d48
commit f576221832

View file

@ -1,14 +1,14 @@
{ lib, fetchFromGitHub, python3Packages, qtbase, wrapQtAppsHook }:
{ lib, fetchFromGitHub, python3Packages, qtbase, wrapQtAppsHook, secp256k1 }:
python3Packages.buildPythonApplication rec {
pname = "electron-cash";
version = "4.0.11";
version = "4.0.14";
src = fetchFromGitHub {
owner = "Electron-Cash";
repo = "Electron-Cash";
rev = version;
sha256 = "1k4zbaj0g8bgk1l5vrb835a8bqfay2707bcb4ql2vx4igcwpb680";
sha256 = "1dp7cj1185h6xfz6jzh0iq58zvg3wq9hl96bkgxkf5h4ygni2vm6";
};
propagatedBuildInputs = with python3Packages; [
@ -25,6 +25,7 @@ python3Packages.buildPythonApplication rec {
requests
tlslite-ng
qdarkstyle
stem
# plugins
keepkey
@ -56,8 +57,14 @@ python3Packages.buildPythonApplication rec {
--replace "Exec=electron-cash" "Exec=$out/bin/electron-cash"
'';
# If secp256k1 wasn't added to the library path, the following warning is given:
#
# Electron Cash was unable to find the secp256k1 library on this system.
# Elliptic curve cryptography operations will be performed in slow
# Python-only mode.
postFixup = ''
wrapQtApp $out/bin/electron-cash
wrapQtApp $out/bin/electron-cash \
--prefix LD_LIBRARY_PATH : ${secp256k1}/lib
'';
doInstallCheck = true;