From c04c9f7435a5eba30e5d2831da10f27d74e5adc3 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Sun, 18 Dec 2016 21:51:36 +0100 Subject: 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. --- pkgs/applications/misc/electrum/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkgs/applications/misc') diff --git a/pkgs/applications/misc/electrum/default.nix b/pkgs/applications/misc/electrum/default.nix index 2ec212d493b..53c1766d01b 100644 --- a/pkgs/applications/misc/electrum/default.nix +++ b/pkgs/applications/misc/electrum/default.nix @@ -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; -- cgit 1.4.1