mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
1c79710e65
1fca9811e1331ac5dae8188f6178cc37da4929a7 lint: Skip whitespace lint for guix patches (Carl Dong) a91c46c57d88fc399432afab7bb0fb14c3e490a7 guix: Make nsis reproducible by respecting SOURCE-DATE-EPOCH (Carl Dong) Pull request description: ``` When building nsis, if VERSION is not specified, it defaults to cvs_version which is non-deterministic as it includes the current date. This patches nsis to default to SOURCE_DATE_EPOCH if it exists so that nsis is reproducible. Upstream change: https://github.com/kichik/nsis/pull/13 ``` Sidenote: also a good demonstration of how Guix allows us to flexibly patch our tools! Note to reviewers: if you want to compare hashes, please build after Jan 16th 2021 without my substitute server enabled! ACKs for top commit: fanquake: ACK 1fca9811e1331ac5dae8188f6178cc37da4929a7 Tree-SHA512: b800e0ce5f73827ad353739effb9167ec3a6bdb362c725ae20dd3f025ce78660f85c70ce1d75cd0896facf1e8fe38a9e058459ed13dec71ab3a2fe41e20eaa5d
16 lines
454 B
Diff
16 lines
454 B
Diff
diff --git a/SConstruct b/SConstruct
|
|
index e8252c9..41786f2 100755
|
|
--- a/SConstruct
|
|
+++ b/SConstruct
|
|
@@ -95,8 +95,8 @@ default_doctype = 'html'
|
|
if defenv.WhereIs('hhc', os.environ['PATH']):
|
|
default_doctype = 'chm'
|
|
|
|
-from time import strftime, gmtime
|
|
-cvs_version = strftime('%d-%b-%Y.cvs', gmtime())
|
|
+import time
|
|
+cvs_version = time.strftime('%d-%b-%Y.cvs', time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))))
|
|
|
|
opts = Variables()
|
|
|