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:
parent
5e5df0fea2
commit
c04c9f7435
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user