From 60f45a2af12abb27d6c3c55d3685cf405b39c8ff Mon Sep 17 00:00:00 2001 From: John Ericson Date: Fri, 15 Sep 2017 15:13:37 -0400 Subject: ghc 8.0.2: Patch Cabal so --extra-*-dirs works right --- pkgs/development/compilers/ghc/8.0.2.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'pkgs/development/compilers/ghc/8.0.2.nix') diff --git a/pkgs/development/compilers/ghc/8.0.2.nix b/pkgs/development/compilers/ghc/8.0.2.nix index 36e2fd0d4c0c..1625d6d0ef01 100644 --- a/pkgs/development/compilers/ghc/8.0.2.nix +++ b/pkgs/development/compilers/ghc/8.0.2.nix @@ -3,7 +3,7 @@ # build-tools , bootPkgs, hscolour -, coreutils, fetchurl, perl, sphinx +, coreutils, fetchpatch, fetchurl, perl, sphinx , libffi, libiconv ? null, ncurses @@ -75,8 +75,15 @@ stdenv.mkDerivation rec { outputs = [ "out" "man" "doc" ]; - patches = [ ./ghc-gold-linker.patch ] - ++ stdenv.lib.optional stdenv.isLinux ./ghc-no-madv-free.patch + patches = [ + ./ghc-gold-linker.patch + (fetchpatch { # Unreleased 1.24.x commit + url = "https://github.com/haskell/cabal/commit/6394cb0b6eba91a8692a3d04b2b56935aed7cccd.patch"; + sha256 = "14xxjg0nb1j1pw0riac3v385ka92qhxxblfmwyvbghz7kry6axy0"; + stripLen = 1; + extraPrefix = "libraries/Cabal/"; + }) + ] ++ stdenv.lib.optional stdenv.isLinux ./ghc-no-madv-free.patch ++ stdenv.lib.optional stdenv.isDarwin ./ghc-8.0.2-no-cpp-warnings.patch; # GHC is a bit confused on its cross terminology. -- cgit 1.4.1