summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2026-08-25 13:07:55 +0200
committerandromeda <andromeda@lenovo>2026-08-25 13:07:55 +0200
commit6e3576009d25d1b7efa62193ce3f5be483d516ad (patch)
tree8191abe12f12b3bb902c313251f15e44020c6979
init
-rw-r--r--.guix-authorizations4
-rw-r--r--.guix-channel5
-rw-r--r--NEWS2
-rw-r--r--andromeda/packages/haskell.scm77
4 files changed, 88 insertions, 0 deletions
diff --git a/.guix-authorizations b/.guix-authorizations
new file mode 100644
index 0000000..734a75c
--- /dev/null
+++ b/.guix-authorizations
@@ -0,0 +1,4 @@
+(authorizations
+ (version 0)
+ (("70DE 7ED5 E5EF 2086 643E 74C0 547A 6CAD 273C 801A"
+ (name "Andromeda")))) \ No newline at end of file
diff --git a/.guix-channel b/.guix-channel
new file mode 100644
index 0000000..b3de09e
--- /dev/null
+++ b/.guix-channel
@@ -0,0 +1,5 @@
+(channel
+ (version 0)
+ (url "https://git.galaxious.de/channel939.git")
+ (keyring-reference "keyring")
+ (news-file "NEWS")) \ No newline at end of file
diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..22e7b61
--- /dev/null
+++ b/NEWS
@@ -0,0 +1,2 @@
+(channel-news
+ (version 0)) \ No newline at end of file
diff --git a/andromeda/packages/haskell.scm b/andromeda/packages/haskell.scm
new file mode 100644
index 0000000..9e3ec0f
--- /dev/null
+++ b/andromeda/packages/haskell.scm
@@ -0,0 +1,77 @@
+(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)))))))