-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ghcjs8_6: Overrides for building against nixpkgs-21.05
- Loading branch information
Showing
6 changed files
with
54 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/ghc/aclocal.m4 b/ghc/aclocal.m4 | ||
index 6eda094315..c14c83914d 100644 | ||
--- a/ghc/aclocal.m4 | ||
+++ b/ghc/aclocal.m4 | ||
@@ -613,7 +613,7 @@ AC_DEFUN([FP_SET_CFLAGS_C99], | ||
CPPFLAGS="$$3" | ||
unset ac_cv_prog_cc_c99 | ||
dnl perform detection | ||
- _AC_PROG_CC_C99 | ||
+ AC_PROG_CC_C99 | ||
fp_cc_c99="$ac_cv_prog_cc_c99" | ||
case "x$ac_cv_prog_cc_c99" in | ||
x) ;; # noop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# The build of ghcjs8.6 uses cabal v1 commands, including v1-sdist, so we need an older cabal-install | ||
{ nixpkgs }: | ||
(nixpkgs.haskell.packages.ghc865.callHackage "cabal-install" "2.4.1.0" {}).overrideScope | ||
(self: super: { | ||
Cabal = self.Cabal_2_4_1_0; | ||
base16-bytestring = self.base16-bytestring_0_1_1_7; | ||
hackage-security = nixpkgs.haskell.lib.dontCheck | ||
(nixpkgs.haskell.lib.doJailbreak | ||
(self.callHackage "hackage-security" "0.5.3.0" {})); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ fetchgit, mkDerivation }: | ||
let | ||
rawSrc = fetchgit { | ||
url = "https://github.com/obsidiansystems/ghcjs.git"; | ||
rev = "a00ecf0b2eaddbc4101c76e6ac95fc97b0f75840"; # ghc-8.6 branch | ||
sha256 = "06cwpijwhj4jpprn07y3pkxmv40pwmqqw5jbdv4s7c67j5pmirnc"; | ||
fetchSubmodules = true; | ||
}; | ||
# See https://gitlab.haskell.org/ghc/ghc/-/commit/ad2ef3a13f1eb000eab8e3d64592373b91a52806 | ||
autoreconfPatch = ./autoreconf.patch; | ||
patchedSrc = mkDerivation { | ||
name = "ghcjs-src-autoreconf-patched"; | ||
src = rawSrc; | ||
buildPhase = '' | ||
cp -r $src $out | ||
chmod -R +w $out/* | ||
cd $out | ||
patch -p1 < ${autoreconfPatch} | ||
''; | ||
dontInstall = true; | ||
}; | ||
in patchedSrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters