@@ -3,7 +3,7 @@
33
44# build-tools
55, bootPkgs, alex, happy
6−, autoconf, automake, coreutils, fetchurl, fetchpatch, perl, python3
6+, autoconf, automake, coreutils, fetchurl, fetchpatch, perl, python3, m4
77
88, libffi, libiconv ? null, ncurses
99
@@ -15,7 +15,7 @@
1515
1616, # If enabled, GHC will be built with the GPL-free but slower integer-simple
1717 # library instead of the faster but GPLed integer-gmp library.
18− enableIntegerSimple ? false, gmp ? null, m4
18+ enableIntegerSimple ? false, gmp ? null
1919
2020, # If enabled, use -fPIC when compiling static libs.
2121 enableRelocatedStaticLibs ? targetPlatform != hostPlatform
@@ -24,7 +24,6 @@
2424 # platform). Static libs are always built.
2525 enableShared ? !targetPlatform.useAndroidPrebuilt
2626
27−, version ? "8.4.2"
2827}:
2928
3029assert !enableIntegerSimple -> gmp != null;
@@ -69,7 +68,7 @@ let
6968
7069in
7170stdenv.mkDerivation rec {
72− inherit version;
71+ version = "8.4.2";
7372 name = "${targetPrefix}ghc-${version}";
7473
7574 src = fetchurl {
@@ -144,7 +143,10 @@ stdenv.mkDerivation rec {
144143 # masss-rebuild.
145144 crossConfig = true;
146145
147− nativeBuildInputs = [ ghc perl autoconf automake m4 happy alex python3 ];
146+ nativeBuildInputs = [
147+ perl autoconf automake m4 python3
148+ ghc alex happy
149+ ];
148150
149151 # For building runtime libs
150152 depsBuildTarget = toolsForTarget;