electrum: enable support for qr codes

This commit is contained in:
Gabriel Ebner 2017-12-30 21:16:16 +01:00
parent 9db8e22679
commit a9f118914f

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, python3, python3Packages }:
{ stdenv, fetchurl, python3, python3Packages, zbar }:
python3Packages.buildPythonApplication rec {
name = "electrum-${version}";
@ -38,6 +38,7 @@ python3Packages.buildPythonApplication rec {
pyrcc5 icons.qrc -o gui/qt/icons_rc.py
# Recording the creation timestamps introduces indeterminism to the build
sed -i '/Created: .*/d' gui/qt/icons_rc.py
sed -i "s|name = 'libzbar.*'|name='${zbar}/lib/libzbar.so'|" lib/qrscanner.py
'';
postInstall = ''