electrum: manually fixup installation of share

This commit is contained in:
Joachim Fasting 2016-12-18 21:56:43 +01:00
parent c04c9f7435
commit 1ee50bc78a
No known key found for this signature in database
GPG Key ID: 7544761007FE4E08

View File

@ -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