diff options
author | Kosyrev Serge <serge.kosyrev@iohk.io> | 2019-08-30 00:30:30 +0300 |
---|---|---|
committer | Kosyrev Serge <serge.kosyrev@iohk.io> | 2019-09-01 12:27:30 +0300 |
commit | 3d5144a554b4097031dca7aa83edc8f53dd04f87 (patch) | |
tree | 83d32843820e06d99551a35d8cd835e0e7dad737 /pkgs/applications | |
parent | bc08b42da4dbdc1c66385bab7a2eae2935e055c0 (diff) |
electrum: update for #65399
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/misc/electrum/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/misc/electrum/default.nix b/pkgs/applications/misc/electrum/default.nix index 5233aaf8fcdbd..8940c8dfd221c 100644 --- a/pkgs/applications/misc/electrum/default.nix +++ b/pkgs/applications/misc/electrum/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, fetchFromGitHub, python3, python3Packages, zbar, secp256k1 +{ stdenv, fetchurl, fetchFromGitHub, wrapQtAppsHook, python3, python3Packages, zbar, secp256k1 , enableQt ? !stdenv.isDarwin @@ -54,6 +54,8 @@ python3Packages.buildPythonApplication rec { cp -ar ${tests} $sourceRoot/electrum/tests ''; + nativeBuildInputs = stdenv.lib.optionals enableQt [ wrapQtAppsHook ]; + propagatedBuildInputs = with python3Packages; [ aiorpcx aiohttp @@ -102,6 +104,11 @@ python3Packages.buildPythonApplication rec { "Exec=$out/bin/electrum %u" \ --replace 'Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\"; electrum --testnet %u"' \ "Exec=$out/bin/electrum --testnet %u" + + ''; + + postFixup = stdenv.lib.optionalString enableQt '' + wrapQtApp $out/bin/electrum ''; checkInputs = with python3Packages; [ pytest ]; |