9
9
(gnu packages gawk)
10
10
(gnu packages gcc)
11
11
((gnu packages linux) #:select (linux-libre-headers-6.1))
12
- (gnu packages llvm)
13
- (gnu packages mingw)
14
12
(gnu packages ninja)
15
13
(gnu packages pkg-config)
16
- ((gnu packages python) #:select (python-minimal))
17
- ((gnu packages python-build) #:select (python-tomli python-poetry-core))
18
- ((gnu packages python-crypto) #:select (python-asn1crypto))
19
- ((gnu packages tls) #:select (openssl))
20
14
((gnu packages version-control) #:select (git-minimal))
21
15
(guix build-system cmake)
22
16
(guix build-system gnu)
23
- (guix build-system python)
24
- (guix build-system pyproject)
25
17
(guix build-system trivial)
26
18
(guix download)
27
19
(guix gexp)
@@ -108,61 +100,6 @@ desirable for building Bitcoin Core release binaries."
108
100
base-libc
109
101
base-gcc))
110
102
111
- (define (gcc-mingw-patches gcc )
112
- (package-with-extra-patches gcc
113
- (search-our-patches " gcc-remap-guix-store.patch" )))
114
-
115
- (define (binutils-mingw-patches binutils )
116
- (package-with-extra-patches binutils
117
- (search-our-patches " binutils-unaligned-default.patch" )))
118
-
119
- (define (winpthreads-patches mingw-w64-x86_64-winpthreads )
120
- (package-with-extra-patches mingw-w64-x86_64-winpthreads
121
- (search-our-patches " winpthreads-remap-guix-store.patch" )))
122
-
123
- (define (make-mingw-pthreads-cross-toolchain target )
124
- "Create a cross-compilation toolchain package for TARGET"
125
- (let* ((xbinutils (binutils-mingw-patches (cross-binutils target)))
126
- (machine (substring target 0 (string-index target #\- )))
127
- (pthreads-xlibc (winpthreads-patches (make-mingw-w64 machine
128
- #:xgcc (cross-gcc target #:xgcc (gcc-mingw-patches base-gcc))
129
- #:with-winpthreads? #t )))
130
- (pthreads-xgcc (cross-gcc target
131
- #:xgcc (gcc-mingw-patches mingw-w64-base-gcc)
132
- #:xbinutils xbinutils
133
- #:libc pthreads-xlibc)))
134
- ; ; Define a meta-package that propagates the resulting XBINUTILS, XLIBC, and
135
- ; ; XGCC
136
- (package
137
- (name (string-append target " -posix-toolchain" ))
138
- (version (package-version pthreads-xgcc))
139
- (source #f )
140
- (build-system trivial-build-system)
141
- (arguments ' (#:builder (begin (mkdir %output) #t )))
142
- (propagated-inputs
143
- (list xbinutils
144
- pthreads-xlibc
145
- pthreads-xgcc
146
- `(,pthreads-xgcc " lib" )))
147
- (synopsis (string-append " Complete GCC tool chain for " target))
148
- (description (string-append " This package provides a complete GCC tool
149
- chain for " target " development." ))
150
- (home-page (package-home-page pthreads-xgcc))
151
- (license (package-license pthreads-xgcc)))))
152
-
153
- (define-public mingw-w64-base-gcc
154
- (package
155
- (inherit base-gcc)
156
- (arguments
157
- (substitute-keyword-arguments (package-arguments base-gcc)
158
- ((#:configure-flags flags)
159
- `(append ,flags
160
- ; ; https://gcc.gnu.org/install/configure.html
161
- (list " --enable-threads=posix" ,
162
- " --enable-default-ssp=yes" ,
163
- " --disable-gcov" ,
164
- building-on)))))))
165
-
166
103
(define-public linux-base-gcc
167
104
(package
168
105
(inherit base-gcc)
@@ -255,8 +192,6 @@ chain for " target " development."))
255
192
cmake-minimal
256
193
gnu-make
257
194
ninja
258
- ; ; Scripting
259
- python-minimal ; ; (3.10)
260
195
; ; Git
261
196
git-minimal)
262
197
(let ((target (getenv " HOST" )))
@@ -265,9 +200,4 @@ chain for " target " development."))
265
200
pkg-config
266
201
(list gcc-toolchain-13 " static" )
267
202
(make-bitcoin-cross-toolchain target)))
268
- ((string-contains target " darwin" )
269
- (list clang-toolchain-18
270
- lld-18
271
- (make-lld-wrapper lld-18 #:lld-as-ld? #t )
272
- zip))
273
203
(else '() )))))
0 commit comments