Skip to content

Commit

Permalink
Fix for ghc >9.10
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed Dec 2, 2024
1 parent a158ea6 commit 1293f27
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions overlays/bootstrap.nix
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ in {
++ onAndroid (onAarch32 (until "9.2" ./patches/ghc/ghc-8.10.7-bionic-libc.patch))
++ onAndroid (onAarch32 (until "9.2" ./patches/ghc/ghc-8.10.7-cross-dont-build-stage2-tools.patch))
++ onAndroid (fromUntil "9.0" "9.10" ./patches/ghc/ghc-9.6-hadrian-android.patch)
++ onAndroid (from "9.10" ./patches/ghc/ghc-9.10-hadrian-android.patch)
++ onMusl (onAarch64 (fromUntil "9.4" "9.8" ./patches/ghc/ghc-9.6-hadrian-strip-cmd.patch))
++ onMusl (onAarch64 (fromUntil "9.8" "9.10" ./patches/ghc/ghc-9.8-hadrian-strip-cmd.patch))
++ onMusl (onAarch64 (fromUntil "9.10" "9.12" ./patches/ghc/ghc-9.10-hadrian-strip-cmd.patch))
Expand Down
10 changes: 10 additions & 0 deletions overlays/patches/ghc/ghc-9.10-hadrian-android.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
diff --git a/hadrian/src/Hadrian/Haskell/Cabal.hs b/hadrian/src/Hadrian/Haskell/Cabal.hs
index 17249efd79..ff6cc57949 100644
--- a/hadrian/src/Hadrian/Haskell/Cabal.hs
+++ b/hadrian/src/Hadrian/Haskell/Cabal.hs
@@ -84,5 +84,6 @@ cabalOsString "mingw32" = "windows"
cabalOsString "darwin" = "osx"
cabalOsString "solaris2" = "solaris"
cabalOsString "gnu" = "hurd"
+cabalOsString "linux_android" = "android"
cabalOsString other = other

0 comments on commit 1293f27

Please sign in to comment.