We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f640b4 commit 828a04fCopy full SHA for 828a04f
compiler/ghc/configured-src.nix
@@ -19,7 +19,7 @@ stdenv.mkDerivation (rec {
19
patches = ghc-patches;
20
name = "${targetPrefix}ghc-${ghc-version}-configured-src";
21
22
- # Make sure we never relax`$PATH` and hooks support for compatibility.
+ # Make sure we never relax`$PATH` and hooks support for compatability.
23
strictDeps = true;
24
25
nativeBuildInputs = [
@@ -40,7 +40,9 @@ stdenv.mkDerivation (rec {
40
41
postPatch = "patchShebangs .";
42
43
- src = fetchurl { inherit (src-spec) url sha256; };
+ src = if src-spec ? file
44
+ then src-spec.file
45
+ else fetchurl { inherit (src-spec) url sha256; };
46
47
# GHC is a bit confused on its cross terminology.
48
preConfigure = ''
0 commit comments