gnu: dstask: Apply "-trimpath" flag.

* gnu/packages/task-management.scm (dstask) [arguments]: <#:phases>:
Apply "-trimpath" flag to custom 'build phase.

Change-Id: I71b145cc4cae587fa898d479e1d5580b5f3750da
This commit is contained in:
Sharlatan Hellseher 2024-06-20 09:26:50 +01:00
parent e7349f1f81
commit 9cfcc16c2f
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -290,8 +290,8 @@ (define-public dstask
(replace 'build
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "build" "-o" "dstask" "cmd/dstask/main.go")
(invoke "go" "build" "-o" "dstask-import"
(invoke "go" "build" "-trimpath" "-o" "dstask" "cmd/dstask/main.go")
(invoke "go" "build" "-trimpath" "-o" "dstask-import"
"cmd/dstask-import/main.go"))))
(replace 'install
(lambda* (#:key import-path outputs #:allow-other-keys)