summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2016-12-18 21:51:36 +0100
committerJoachim Fasting <joachifm@fastmail.fm>2016-12-18 22:19:48 +0100
commitc04c9f7435a5eba30e5d2831da10f27d74e5adc3 (patch)
treef7d64401d461404af19c9775d6e7bc4033a2f7dc /pkgs/applications/misc
parent5e5df0fea29323a1a75b8a16911e22955525ed82 (diff)
downloadnixpkgs-c04c9f7435a5eba30e5d2831da10f27d74e5adc3.tar
nixpkgs-c04c9f7435a5eba30e5d2831da10f27d74e5adc3.tar.gz
nixpkgs-c04c9f7435a5eba30e5d2831da10f27d74e5adc3.tar.bz2
nixpkgs-c04c9f7435a5eba30e5d2831da10f27d74e5adc3.tar.lz
nixpkgs-c04c9f7435a5eba30e5d2831da10f27d74e5adc3.tar.xz
nixpkgs-c04c9f7435a5eba30e5d2831da10f27d74e5adc3.tar.zst
nixpkgs-c04c9f7435a5eba30e5d2831da10f27d74e5adc3.zip
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.
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/electrum/default.nix2
1 files changed, 2 insertions, 0 deletions
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;