summary refs log tree commit diff
diff options
context:
space:
mode:
author( <paren@disroot.org>2022-06-24 18:56:28 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2022-06-19 02:00:00 +0200
commitc539a13050e4e5469ce9b3d09efb5cabfa5d832b (patch)
treec44ae0eabf1c3ed37046debe6e87bf1f4d156b80
parentd039f9dc151eed8017a7f54682dbf713221b8005 (diff)
downloadguix-c539a13050e4e5469ce9b3d09efb5cabfa5d832b.tar.gz
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>
-rw-r--r--guix/build/dub-build-system.scm12
1 files changed, 4 insertions, 8 deletions
diff --git a/guix/build/dub-build-system.scm b/guix/build/dub-build-system.scm
index 3ab50733de..a916afb0c4 100644
--- a/guix/build/dub-build-system.scm
+++ b/guix/build/dub-build-system.scm
@@ -67,8 +67,7 @@
                 (symlink (string-append path "/lib/dub/" d-basename)
                          (string-append vendor-dir "/" d-basename))))))))
       inputs)
-    (invoke "dub" "add-path" vendor-dir)
-    #t))
+    (invoke "dub" "add-path" vendor-dir)))
 
 (define (grep string 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))
     (substitute* ".dub/dub.json"
       (("\"lastUpgrade\": \"[^\"]*\"")
-       "\"lastUpgrade\": \"1970-01-01T00:00:00.0000000\"")))
-  #t)
+       "\"lastUpgrade\": \"1970-01-01T00:00:00.0000000\""))))
 
 (define* (check #:key tests? #:allow-other-keys)
   (when tests?
     (invoke "dub" "test")
     (substitute* ".dub/dub.json"
       (("\"lastUpgrade\": \"[^\"]*\"")
-       "\"lastUpgrade\": \"1970-01-01T00:00:00.0000000\"")))
-  #t)
+       "\"lastUpgrade\": \"1970-01-01T00:00:00.0000000\""))))
 
 (define* (install #:key inputs outputs #:allow-other-keys)
   "Install a given DUB package."
@@ -115,8 +112,7 @@
     ;; TODO remove "-test-application"
     (copy-recursively "bin" outbin)
     (mkdir-p outlib)
-    (copy-recursively "." (string-append outlib))
-    #t))
+    (copy-recursively "." (string-append outlib))))
 
 (define %standard-phases
   (modify-phases gnu:%standard-phases