gnu: ghc-basement: Fix compilation on 32-bit platforms.

* gnu/packages/patches/ghc-basement-fix-32-bit.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/haskell-xyz.scm (ghc-basement)[arguments]: New field.

Change-Id: I4d462754cad3daf8328e7d3c95c184a9e12a45cd
This commit is contained in:
Ludovic Courtès 2024-08-18 22:24:36 +02:00
parent 5d6c55d364
commit a4f64b30b0
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
3 changed files with 239 additions and 0 deletions

View file

@ -800,6 +800,18 @@ than @code{base-compat}, which has no dependencies.")
(sha256
(base32 "00332i4n98gh06x8ii4p8mhjpq0ch1bdan9hxmdblxpgk8j7xdvz"))))
(build-system haskell-build-system)
(arguments
(if (target-64bit?)
'()
(list #:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-for-32-bit-system
(lambda _
(define patch
#$(local-file
(search-patch "ghc-basement-fix-32-bit.patch")))
(invoke "patch" "-p1" "--force" "-i" patch)))))))
(properties '((upstream-name . "basement")))
(home-page "https://github.com/haskell-foundation/foundation#readme")
(synopsis "Basic primitives for Foundation starter pack")