[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#67921] [PATCH v3 22/24] gnu: Add hadrian-for-ghc-9.6
From: |
Nicolas Graves |
Subject: |
[bug#67921] [PATCH v3 22/24] gnu: Add hadrian-for-ghc-9.6 |
Date: |
Thu, 31 Oct 2024 13:47:01 +0100 |
From: Saku Laesvuori <saku@laesvuori.fi>
* gnu/packages/haskell.scm (hadrian-for-ghc-9.6): New variable.
Change-Id: I4205c888afa7b03b4b1622a3af7d1d538fa5c9b1
---
gnu/packages/haskell.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 4bd1ef150b..256fe84c89 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -2121,4 +2121,44 @@ (define ghc-primitive-bootstrap-for-9.6
"This package provides various primitive memory-related operations.")
(license license:bsd-3)))
+(define hadrian-for-ghc-9.6
+ (package
+ (name "hadrian")
+ (version "9.6.4")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://www.haskell.org/ghc/dist/" version
+ "/ghc-" version "-src.tar.xz"))
+ (sha256
+ (base32
+ "1h6lpx8kd4xycjwb8iv2rgnz23kwq5b0qp4bhvczsx3in2w2bgqh"))))
+ (build-system haskell-build-system)
+ (inputs
+ (list ghc-base16-bytestring-bootstrap-for-9.6
+ ghc-cryptohash-sha256-bootstrap-for-9.6
+ ghc-extra-bootstrap-for-9.6
+ ghc-shake-bootstrap-for-9.6
+ ghc-unordered-containers-bootstrap-for-9.6
+ bash-minimal))
+ (arguments
+ (list #:configure-flags ''("--flags=-selftest")
+ #:tests? #f
+ #:haskell ghc-bootstrap-for-9.6
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'cd-to-hadrian
+ (lambda _
+ (chdir "hadrian")))
+ (add-after 'cd-to-hadrian 'fix-shell-wrappers
+ (lambda _
+ (substitute*
+ "src/Rules/Test.hs"
+ (("\"#!/bin/sh\"")
+ (format #f "\"#!~a/bin/sh\"" #$(this-package-input
"bash-minimal")))))))))
+ (home-page "https://gitlab.haskell.org/ghc/ghc/-/tree/master/hadrian")
+ (synopsis "Build system for the Glasgow Haskell Compiler (@code{ghc})")
+ (description "Hadrian is the build system for the Glasgow Haskell Compiler.
+It is based on the Shake library and replaces @{make} in building GHC")
+ (license license:expat)))
+
;;; haskell.scm ends here
--
2.46.0
- [bug#67921] [PATCH v3 11/24] gnu: Add ghc-utf8-string-bootstrap-for-9.6, (continued)
- [bug#67921] [PATCH v3 11/24] gnu: Add ghc-utf8-string-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 14/24] gnu: Add ghc-nats-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 04/24] gnu: Add ghc-clock-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 10/24] gnu: Add ghc-js-jquery-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 21/24] gnu: Add ghc-shake-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 18/24] gnu: Add ghc-cryptohash-sha256-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 17/24] gnu: Add ghc-base16-bytestring-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 09/24] gnu: Add ghc-primitive-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 16/24] gnu: Add ghc-semigroups-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 06/24] gnu: Add ghc-hashable-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 22/24] gnu: Add hadrian-for-ghc-9.6,
Nicolas Graves <=
- [bug#67921] [PATCH v3 12/24] gnu: Add ghc-heaps-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 13/24] gnu: Add ghc-js-dgtable-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 19/24] gnu: Add ghc-unordered-containers-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 07/24] gnu: Add ghc-splitmix-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 05/24] gnu: Add ghc-extra-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 08/24] gnu: Add ghc-random-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 20/24] gnu: Add ghc-filepattern-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 15/24] gnu: Add ghc-tagged-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 03/24] gnu: Add ghc-js-flot-bootstrap-for-9.6, Nicolas Graves, 2024/10/31
- [bug#67921] [PATCH v3 23/24] gnu: Add ghc-9.6, Nicolas Graves, 2024/10/31