electrum: improve build determinism

The icon resource file captures the build timestamp, introducing an
element of indeterminism.  Fix by patching out the timestamp.

This allows

```sh
nix-build --check -A electrum
```

to succeed.
This commit is contained in:
Joachim Fasting 2016-12-18 21:51:36 +01:00
parent 5e5df0fea2
commit c04c9f7435
No known key found for this signature in database
GPG Key ID: 7544761007FE4E08

View File

@ -36,6 +36,8 @@ python2Packages.buildPythonApplication rec {
preBuild = ''
sed -i 's,usr_share = .*,usr_share = "'$out'/share",g' setup.py
pyrcc4 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
'';
doInstallCheck = true;