electron-cash: 2.9.4 -> 3.0
This commit is contained in:
parent
fc96261aa9
commit
edd40e7e7a
@ -1,24 +1,31 @@
|
|||||||
{ stdenv, fetchurl, python2Packages }:
|
{ stdenv, fetchurl, python3Packages, qtbase }:
|
||||||
|
|
||||||
python2Packages.buildPythonApplication rec {
|
let
|
||||||
version = "2.9.4";
|
|
||||||
|
python = python3Packages.python;
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
|
python3Packages.buildPythonApplication rec {
|
||||||
|
version = "3.0";
|
||||||
name = "electron-cash-${version}";
|
name = "electron-cash-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://electroncash.org/downloads/${version}/win-linux/Electron-Cash-${version}.tar.gz";
|
url = "https://electroncash.org/downloads/${version}/win-linux/ElectronCash-${version}.tar.gz";
|
||||||
# Verified using official SHA-1 and signature from
|
# Verified using official SHA-1 and signature from
|
||||||
# https://github.com/fyookball/keys-n-hashes
|
# https://github.com/fyookball/keys-n-hashes
|
||||||
sha256 = "1y8mzwa6bb8zj4l92wm4c2icnr42wmhbfz6z5ymh356gwll914vh";
|
sha256 = "f0e2bf5c6d29da714eddd50b45761fea9fc905a0172c7b92df8fca7427439f1a";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with python2Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
dnspython
|
dnspython
|
||||||
ecdsa
|
ecdsa
|
||||||
jsonrpclib
|
jsonrpclib-pelix
|
||||||
|
matplotlib
|
||||||
pbkdf2
|
pbkdf2
|
||||||
pyaes
|
pyaes
|
||||||
pycrypto
|
pycrypto
|
||||||
pyqt4
|
pyqt5
|
||||||
pysocks
|
pysocks
|
||||||
qrcode
|
qrcode
|
||||||
requests
|
requests
|
||||||
@ -31,16 +38,18 @@ python2Packages.buildPythonApplication rec {
|
|||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
sed -i 's,usr_share = .*,usr_share = "'$out'/share",g' setup.py
|
sed -i 's,usr_share = .*,usr_share = "'$out'/share",g' setup.py
|
||||||
pyrcc4 icons.qrc -o gui/qt/icons_rc.py
|
pyrcc5 icons.qrc -o gui/qt/icons_rc.py
|
||||||
# Recording the creation timestamps introduces indeterminism to the build
|
# Recording the creation timestamps introduces indeterminism to the build
|
||||||
sed -i '/Created: .*/d' gui/qt/icons_rc.py
|
sed -i '/Created: .*/d' gui/qt/icons_rc.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# Despite setting usr_share above, these files are installed under
|
# Despite setting usr_share above, these files are installed under
|
||||||
# $out/nix ...
|
# $out/nix ...
|
||||||
mv $out/lib/python2.7/site-packages/nix/store"/"*/share $out
|
mv $out/${python.sitePackages}/nix/store"/"*/share $out
|
||||||
rm -rf $out/lib/python2.7/site-packages/nix
|
rm -rf $out/${python.sitePackages}/nix
|
||||||
|
|
||||||
substituteInPlace $out/share/applications/electron-cash.desktop \
|
substituteInPlace $out/share/applications/electron-cash.desktop \
|
||||||
--replace "Exec=electron-cash %u" "Exec=$out/bin/electron-cash %u"
|
--replace "Exec=electron-cash %u" "Exec=$out/bin/electron-cash %u"
|
||||||
|
@ -14409,7 +14409,7 @@ with pkgs;
|
|||||||
|
|
||||||
ekho = callPackage ../applications/audio/ekho { };
|
ekho = callPackage ../applications/audio/ekho { };
|
||||||
|
|
||||||
electron-cash = callPackage ../applications/misc/electron-cash { };
|
electron-cash = libsForQt5.callPackage ../applications/misc/electron-cash { };
|
||||||
|
|
||||||
electrum = callPackage ../applications/misc/electrum { };
|
electrum = callPackage ../applications/misc/electrum { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user