From 1ee50bc78a973554f6393266c759b5219aadb48f Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Sun, 18 Dec 2016 21:56:43 +0100 Subject: [PATCH] electrum: manually fixup installation of share --- pkgs/applications/misc/electrum/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/misc/electrum/default.nix b/pkgs/applications/misc/electrum/default.nix index 53c1766d01b..e0d426e99b6 100644 --- a/pkgs/applications/misc/electrum/default.nix +++ b/pkgs/applications/misc/electrum/default.nix @@ -40,6 +40,13 @@ python2Packages.buildPythonApplication rec { sed -i '/Created: .*/d' gui/qt/icons_rc.py ''; + postInstall = '' + # Despite setting usr_share above, these files are installed under + # $out/nix ... + mv $out/lib/python2.7/site-packages/nix/store/*/share $out + rm -rf $out/lib/python2.7/site-packages/nix + ''; + doInstallCheck = true; installCheckPhase = '' $out/bin/electrum help >/dev/null