summaryrefslogtreecommitdiff
path: root/guix/build
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2017-12-31 14:10:25 +0200
committerEfraim Flashner <efraim@flashner.co.il>2017-12-31 14:10:25 +0200
commit23de2e1d5f8f7548e6f73085de23d9964774edbf (patch)
treefab69d4bb55f275f14012a724b7cb14bd307b57f /guix/build
parentec6ba5c1fe9308cbc18f06c99adcfe0d13396a18 (diff)
parent1c27f72fc2770d68243dd95b7c05adc3b2b02ea4 (diff)
Merge remote-tracking branch 'origin/master' into core-updates
Diffstat (limited to 'guix/build')
-rw-r--r--guix/build/dub-build-system.scm12
1 files changed, 10 insertions, 2 deletions
diff --git a/guix/build/dub-build-system.scm b/guix/build/dub-build-system.scm
index b2cb02e639..432d51f6a7 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)