diff options
author | nyanloutre <paul@nyanlout.re> | 2018-09-12 18:03:36 +0200 |
---|---|---|
committer | nyanloutre <paul@nyanlout.re> | 2018-09-23 18:44:28 +0200 |
commit | f5a5752630690bb35b15e144d9171bff5217bab5 (patch) | |
tree | 41a96aafddcaa0c401a87adab5d3e96d051a9a04 /pkgs/applications/misc/electron-cash | |
parent | e33a7dfd54485938a5e309ab35cb43be1c9669b3 (diff) |
electron-cash: fix #24256
Diffstat (limited to 'pkgs/applications/misc/electron-cash')
-rw-r--r-- | pkgs/applications/misc/electron-cash/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/applications/misc/electron-cash/default.nix b/pkgs/applications/misc/electron-cash/default.nix index 3583d0258ff8..d3e93d357f04 100644 --- a/pkgs/applications/misc/electron-cash/default.nix +++ b/pkgs/applications/misc/electron-cash/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, python3Packages }: +{ stdenv, fetchurl, python3Packages, qtbase, makeWrapper, lib }: let @@ -36,6 +36,8 @@ python3Packages.buildPythonApplication rec { trezor ]; + nativeBuildInputs = [ makeWrapper ]; + postPatch = '' # Remove pyqt5 check sed -i '/pyqt5/d' setup.py @@ -56,11 +58,14 @@ python3Packages.buildPythonApplication rec { substituteInPlace $out/share/applications/electron-cash.desktop \ --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; installCheckPhase = '' - $out/bin/electrum help >/dev/null + $out/bin/electron-cash help >/dev/null ''; meta = with stdenv.lib; { |