@@ -3,7 +3,7 @@
33
44# build-tools
55, bootPkgs, alex, happy
6−, autoconf, automake, coreutils, fetchgit, perl, python3
6+, autoconf, automake, coreutils, fetchgit, fetchpatch, perl, python3
77
88, libffi, libiconv ? null, ncurses
99
@@ -81,6 +81,13 @@ stdenv.mkDerivation rec {
8181
8282 outputs = [ "out" "doc" ];
8383
84+ patches = [
85+ (fetchpatch { # https://phabricator.haskell.org/D4388 for more determinism
86+ url = "https://github.com/shlevy/ghc/commit/8b2dbd869d1a64de3e99fa8b1c9bb1140eee7099.patch";
87+ sha256 = "0hxpiwhbg64rsyjdr4psh6dwyp58b96mad3adccvfr0x8hc6ba2m";
88+ })
89+ ];
90+
8491 postPatch = "patchShebangs .";
8592
8693 # GHC is a bit confused on its cross terminology.