git.iko.soy/typeable/nixpkgs
on master help sign in
ghc 8.{2,4}: Add patches for deterministic profiling symbols.

These are taken from https://phabricator.haskell.org/D4388 (which is against HEAD) and fix an inconsistency when building profiling libraries on multiple machines that leads to linking failure.

commit69b0bc1bdf6d4fae9669d246532e5c37e5fb8b29 authorShea Levy <shea@shealevy.com> dateWed 7 Feb 2018, 15:02 (9 years ago) parent36a095e
2 files changed+12−1
pkgs/development/compilers/ghc/8.2.2.nix+4 pkgs/development/compilers/ghc/8.4.1.nix+8−1
pkgs/development/compilers/ghc/8.2.2.nix+4
@@ -85,6 +85,10 @@ stdenv.mkDerivation rec {
8585 url = "https://git.haskell.org/ghc.git/commitdiff_plain/2fc8ce5f0c8c81771c26266ac0b150ca9b75c5f3";
8686 sha256 = "03253ci40np1v6k0wmi4aypj3nmj3rdyvb1k6rwqipb30nfc719f";
8787 })
88+ (fetchpatch { # Backport of https://phabricator.haskell.org/D4388 for more determinism
89+ url = "https://github.com/shlevy/ghc/commit/fec1b8d3555c447c0d8da0e96b659be67c8bb4bc.patch";
90+ sha256 = "1lyysz6hfd1njcigpm8xppbnkadqfs0kvrp7s8vqgb38pjswj5hg";
91+ })
8892 ];
8993
9094 postPatch = "patchShebangs .";
pkgs/development/compilers/ghc/8.4.1.nix+8−1
@@ -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.