(define-module (andromeda packages haskell) #:use-module (gnu packages) #:use-module (gnu packages haskell) #:use-module (guix download) #:use-module (guix gexp) #:use-module (guix packages) #:use-module (guix utils)) (define-public ghc-9.12 (let ((base ghc-9.8)) (package (inherit base) (name "ghc") (version "9.12.2") (source (origin (method url-fetch) (uri (string-append "https://downloads.haskell.org/~ghc/" version "/ghc-" version "-src.tar.xz")) (sha256 (base32 "0czrhi8fdvzxbpviri2xjj6xdy50syjyjpbff72liws3vrfwsj8f")))) (arguments (substitute-keyword-arguments (package-arguments base) ((#:phases phases #~%standard-phases) #~(modify-phases #$phases (replace 'check (lambda* (#:key (tests? #t) (parallel-tests? #f) (make-flags '()) #:allow-other-keys) (if tests? (apply invoke "_build/bin/hadrian" `(,@(if parallel-tests? (list (string-append "-j" (number->string (parallel-job-count)))) '()) ,@make-flags "test" ,(string-append "--broken-test=" (string-join (list "T15904" ; ld-wrapper, apparently "T16521" ; no idea "T7275" "toplevel_scc_1"))) "--skip-perf" "-a")) ; TODO: actually figure out test failures (format #t "test suite not run~%")))))))) (native-inputs (modify-inputs (package-native-inputs base) (replace "ghc" base) (replace "ghc-testsuite.tar.xz" (origin (method url-fetch) (uri (string-append "https://downloads.haskell.org/~ghc/" version "/ghc-" version "-testsuite.tar.xz")) (sha256 (base32 "1ahhyh5kwmi4ck2687mjawnp9syb7a0m47y096x896zznjnjw56g")) (patches (search-patches "ghc-testsuite-recomp015-execstack.patch")))) (replace "hadrian-bootstrap-sources.tar.gz" (origin (method url-fetch) (uri (string-append "https://downloads.haskell.org/~ghc/" version "/hadrian-bootstrap-sources/" "hadrian-bootstrap-sources-" (package-version base) ".tar.gz")) (sha256 (base32 "16hxy3jk213zjqm75sa0slslfz7b2f4iqycnnjisbdr7ias2x5nl")))))) (native-search-paths (list (search-path-specification (variable "GHC_PACKAGE_PATH") (files (list (string-append "lib/ghc-" version))) (file-pattern ".*\\.conf\\.d$") (file-type 'directory)))))))