Skip to content

Commit 6354cbb

Browse files
committed
clean 03
1 parent 4c835a6 commit 6354cbb

File tree

1 file changed

+0
-70
lines changed

1 file changed

+0
-70
lines changed

contrib/guix/manifest.scm

-70
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,11 @@
99
(gnu packages gawk)
1010
(gnu packages gcc)
1111
((gnu packages linux) #:select (linux-libre-headers-6.1))
12-
(gnu packages llvm)
13-
(gnu packages mingw)
1412
(gnu packages ninja)
1513
(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))
2014
((gnu packages version-control) #:select (git-minimal))
2115
(guix build-system cmake)
2216
(guix build-system gnu)
23-
(guix build-system python)
24-
(guix build-system pyproject)
2517
(guix build-system trivial)
2618
(guix download)
2719
(guix gexp)
@@ -108,61 +100,6 @@ desirable for building Bitcoin Core release binaries."
108100
base-libc
109101
base-gcc))
110102

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-
166103
(define-public linux-base-gcc
167104
(package
168105
(inherit base-gcc)
@@ -255,8 +192,6 @@ chain for " target " development."))
255192
cmake-minimal
256193
gnu-make
257194
ninja
258-
;; Scripting
259-
python-minimal ;; (3.10)
260195
;; Git
261196
git-minimal)
262197
(let ((target (getenv "HOST")))
@@ -265,9 +200,4 @@ chain for " target " development."))
265200
pkg-config
266201
(list gcc-toolchain-13 "static")
267202
(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))
273203
(else '())))))

0 commit comments

Comments
 (0)