[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: build: dub-build-system: Make builds reproducible.
From: |
Danny Milosavljevic |
Subject: |
01/01: build: dub-build-system: Make builds reproducible. |
Date: |
Sat, 30 Dec 2017 18:31:30 -0500 (EST) |
dannym pushed a commit to branch master
in repository guix.
commit 6a1a69679d8ed90b2a6281508d4760c0e9337e78
Author: Danny Milosavljevic <address@hidden>
Date: Sun Dec 31 00:29:59 2017 +0100
build: dub-build-system: Make builds reproducible.
* guix/build/dub-build-system.scm (build): Make reproducible.
(check): Make reproducible.
---
guix/build/dub-build-system.scm | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/guix/build/dub-build-system.scm b/guix/build/dub-build-system.scm
index b2cb02e..432d51f 100644
--- a/guix/build/dub-build-system.scm
+++ b/guix/build/dub-build-system.scm
@@ -91,11 +91,19 @@
(grep* "sourceLibrary" "dub.sdl") ; note: format is different!
(grep* "sourceLibrary" "dub.json"))
#t
- (zero? (apply system* `("dub" "build" ,@dub-build-flags)))))
+ (let ((status (zero? (apply system* `("dub" "build" ,@dub-build-flags)))))
+ (substitute* ".dub/dub.json"
+ (("\"lastUpgrade\": \"[^\"]*\"")
+ "\"lastUpgrade\": \"1970-01-01T00:00:00.0000000\""))
+ status)))
(define* (check #:key tests? #:allow-other-keys)
(if tests?
- (zero? (system* "dub" "test"))
+ (let ((status (zero? (system* "dub" "test"))))
+ (substitute* ".dub/dub.json"
+ (("\"lastUpgrade\": \"[^\"]*\"")
+ "\"lastUpgrade\": \"1970-01-01T00:00:00.0000000\""))
+ status)
#t))
(define* (install #:key inputs outputs #:allow-other-keys)