@@ -19,7 +19,7 @@ stdenv.mkDerivation (rec {
19 patches = ghc-patches;
19 patches = ghc-patches;
20 name = "${targetPrefix}ghc-${ghc-version}-configured-src";
20 name = "${targetPrefix}ghc-${ghc-version}-configured-src";
22− # Make sure we never relax`$PATH` and hooks support for compatibility.
22+ # Make sure we never relax`$PATH` and hooks support for compatability.
23 strictDeps = true;
23 strictDeps = true;
25 nativeBuildInputs = [
25 nativeBuildInputs = [
@@ -40,7 +40,9 @@ stdenv.mkDerivation (rec {
41 postPatch = "patchShebangs .";
41 postPatch = "patchShebangs .";
43+ src = if src-spec ? file
43− src = fetchurl { inherit (src-spec) url sha256; };
45+ else fetchurl { inherit (src-spec) url sha256; };
45 # GHC is a bit confused on its cross terminology.
47 # GHC is a bit confused on its cross terminology.
46 preConfigure = ''
48 preConfigure = ''