about summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc
diff options
context:
space:
mode:
authorWill Fancher <elvishjerricco@gmail.com>2018-05-09 03:40:34 -0400
committerWill Fancher <elvishjerricco@gmail.com>2018-05-09 23:53:30 -0400
commit9dadb9e3cb20003d2510d1911a44f93a60cdf87a (patch)
tree0c26f3d6404235ae1505f7169ce4166af3d5a6ca /pkgs/development/compilers/ghc
parent8012aee0a7d9fe14fe77d20b6fdd8d2e6120bcc1 (diff)
downloadnixlib-9dadb9e3cb20003d2510d1911a44f93a60cdf87a.tar
nixlib-9dadb9e3cb20003d2510d1911a44f93a60cdf87a.tar.gz
nixlib-9dadb9e3cb20003d2510d1911a44f93a60cdf87a.tar.bz2
nixlib-9dadb9e3cb20003d2510d1911a44f93a60cdf87a.tar.lz
nixlib-9dadb9e3cb20003d2510d1911a44f93a60cdf87a.tar.xz
nixlib-9dadb9e3cb20003d2510d1911a44f93a60cdf87a.tar.zst
nixlib-9dadb9e3cb20003d2510d1911a44f93a60cdf87a.zip
Fix hsc2hs cross compiler build
Diffstat (limited to 'pkgs/development/compilers/ghc')
-rw-r--r--pkgs/development/compilers/ghc/8.4.2.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/compilers/ghc/8.4.2.nix b/pkgs/development/compilers/ghc/8.4.2.nix
index b588592a71cf..94555482d28b 100644
--- a/pkgs/development/compilers/ghc/8.4.2.nix
+++ b/pkgs/development/compilers/ghc/8.4.2.nix
@@ -3,7 +3,7 @@
 
 # build-tools
 , bootPkgs, alex, happy
-, autoconf, automake, coreutils, fetchurl, perl, python3
+, autoconf, automake, coreutils, fetchurl, fetchpatch, perl, python3
 
 , libffi, libiconv ? null, ncurses
 
@@ -81,6 +81,13 @@ stdenv.mkDerivation rec {
 
   outputs = [ "out" "doc" ];
 
+  patches = [(fetchpatch {
+    url = "https://git.haskell.org/hsc2hs.git/patch/738f3666c878ee9e79c3d5e819ef8b3460288edf";
+    sha256 = "0plzsbfaq6vb1023lsarrjglwgr9chld4q3m99rcfzx0yx5mibp3";
+    extraPrefix = "utils/hsc2hs/";
+    stripLen = 1;
+  })];
+
   postPatch = "patchShebangs .";
 
   # GHC is a bit confused on its cross terminology.