build-system/dub: Don't explicitly return #t from phases.
* guix/build/dub-build-system.scm (configure, build, check, install): Remove trailing #t. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
This commit is contained in:
parent
d039f9dc15
commit
c539a13050
@ -67,8 +67,7 @@
|
|||||||
(symlink (string-append path "/lib/dub/" d-basename)
|
(symlink (string-append path "/lib/dub/" d-basename)
|
||||||
(string-append vendor-dir "/" d-basename))))))))
|
(string-append vendor-dir "/" d-basename))))))))
|
||||||
inputs)
|
inputs)
|
||||||
(invoke "dub" "add-path" vendor-dir)
|
(invoke "dub" "add-path" vendor-dir)))
|
||||||
#t))
|
|
||||||
|
|
||||||
(define (grep string file-name)
|
(define (grep string file-name)
|
||||||
"Find the first occurrence of STRING in the file named FILE-NAME.
|
"Find the first occurrence of STRING in the file named FILE-NAME.
|
||||||
@ -95,16 +94,14 @@
|
|||||||
(apply invoke `("dub" "build" ,@dub-build-flags))
|
(apply invoke `("dub" "build" ,@dub-build-flags))
|
||||||
(substitute* ".dub/dub.json"
|
(substitute* ".dub/dub.json"
|
||||||
(("\"lastUpgrade\": \"[^\"]*\"")
|
(("\"lastUpgrade\": \"[^\"]*\"")
|
||||||
"\"lastUpgrade\": \"1970-01-01T00:00:00.0000000\"")))
|
"\"lastUpgrade\": \"1970-01-01T00:00:00.0000000\""))))
|
||||||
#t)
|
|
||||||
|
|
||||||
(define* (check #:key tests? #:allow-other-keys)
|
(define* (check #:key tests? #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
(invoke "dub" "test")
|
(invoke "dub" "test")
|
||||||
(substitute* ".dub/dub.json"
|
(substitute* ".dub/dub.json"
|
||||||
(("\"lastUpgrade\": \"[^\"]*\"")
|
(("\"lastUpgrade\": \"[^\"]*\"")
|
||||||
"\"lastUpgrade\": \"1970-01-01T00:00:00.0000000\"")))
|
"\"lastUpgrade\": \"1970-01-01T00:00:00.0000000\""))))
|
||||||
#t)
|
|
||||||
|
|
||||||
(define* (install #:key inputs outputs #:allow-other-keys)
|
(define* (install #:key inputs outputs #:allow-other-keys)
|
||||||
"Install a given DUB package."
|
"Install a given DUB package."
|
||||||
@ -115,8 +112,7 @@
|
|||||||
;; TODO remove "-test-application"
|
;; TODO remove "-test-application"
|
||||||
(copy-recursively "bin" outbin)
|
(copy-recursively "bin" outbin)
|
||||||
(mkdir-p outlib)
|
(mkdir-p outlib)
|
||||||
(copy-recursively "." (string-append outlib))
|
(copy-recursively "." (string-append outlib))))
|
||||||
#t))
|
|
||||||
|
|
||||||
(define %standard-phases
|
(define %standard-phases
|
||||||
(modify-phases gnu:%standard-phases
|
(modify-phases gnu:%standard-phases
|
||||||
|
Loading…
Reference in New Issue
Block a user