[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/12: gnu: d-tools: Fix build.
From: |
guix-commits |
Subject: |
07/12: gnu: d-tools: Fix build. |
Date: |
Sat, 25 Jun 2022 14:16:48 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 5f5a78872e9fa73836af478835979147ca38ce44
Author: ( <paren@disroot.org>
AuthorDate: Wed Jun 15 19:53:50 2022 +0100
gnu: d-tools: Fix build.
* gnu/packages/dlang.scm (d-tools)[arguments]: Set target CC and LD
environment variables.
[native-inputs]: Add ld-gold-wrapper.
Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
---
gnu/packages/dlang.scm | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm
index 799ec7f184..f80484c908 100644
--- a/gnu/packages/dlang.scm
+++ b/gnu/packages/dlang.scm
@@ -62,13 +62,15 @@
"0c8w373rv6iz3xfid94w40ncv2lr2ncxi662qsr4lda4aghczmq7"))))
(build-system gnu-build-system)
(arguments
- '(#:phases
+ `(#:phases
(modify-phases %standard-phases
(delete 'configure)
(delete 'check) ; There is no Makefile, so there's no 'make check'.
(replace
'build
(lambda _
+ (setenv "CC" ,(cc-for-target))
+ (setenv "LD" ,(ld-for-target))
(invoke "ldc2" "rdmd.d")))
(replace
'install
@@ -76,7 +78,10 @@
(let ((bin (string-append (assoc-ref outputs "out") "/bin")))
(install-file "rdmd" bin)))))))
(native-inputs
- (list ldc))
+ (list ldc
+ (module-ref (resolve-interface
+ '(gnu packages commencement))
+ 'ld-gold-wrapper)))
(home-page "https://github.com/dlang/tools")
(synopsis "Useful D-related tools")
(description
- branch master updated (4772c03ffe -> 4c63796545), guix-commits, 2022/06/25
- 11/12: gnu: dub: Update to 1.23.0., guix-commits, 2022/06/25
- 12/12: gnu: dub: Use G-expressions., guix-commits, 2022/06/25
- 08/12: gnu: d-tools: Use G-expressions., guix-commits, 2022/06/25
- 04/12: gnu: exim: Use G-expressions., guix-commits, 2022/06/25
- 03/12: gnu: exim: Don't address build inputs by their labels., guix-commits, 2022/06/25
- 02/12: gnu: exim: Hide bogus CVE lint warning., guix-commits, 2022/06/25
- 05/12: gnu: exim: Remove input labels., guix-commits, 2022/06/25
- 06/12: gnu: rdmd: Rename to d-tools., guix-commits, 2022/06/25
- 07/12: gnu: d-tools: Fix build.,
guix-commits <=
- 01/12: gnu: exim: Update to 4.96., guix-commits, 2022/06/25
- 10/12: gnu: d-tools: Update to 2.100.0., guix-commits, 2022/06/25
- 09/12: gnu: d-tools: Don't use unstable tarball., guix-commits, 2022/06/25