electron-cash: fix #24256

This commit is contained in:
nyanloutre 2018-09-12 18:03:36 +02:00
parent e33a7dfd54
commit f5a5752630
No known key found for this signature in database
GPG Key ID: 194A92D1103ACB2A

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, python3Packages }: { stdenv, fetchurl, python3Packages, qtbase, makeWrapper, lib }:
let let
@ -36,6 +36,8 @@ python3Packages.buildPythonApplication rec {
trezor trezor
]; ];
nativeBuildInputs = [ makeWrapper ];
postPatch = '' postPatch = ''
# Remove pyqt5 check # Remove pyqt5 check
sed -i '/pyqt5/d' setup.py sed -i '/pyqt5/d' setup.py
@ -56,11 +58,14 @@ python3Packages.buildPythonApplication rec {
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"
wrapProgram $out/bin/electron-cash \
--prefix QT_PLUGIN_PATH : ${qtbase}/lib/qt-5.${lib.versions.minor qtbase.version}/plugins
''; '';
doInstallCheck = true; doInstallCheck = true;
installCheckPhase = '' installCheckPhase = ''
$out/bin/electrum help >/dev/null $out/bin/electron-cash help >/dev/null
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {