forked from mirrors/nixpkgs
Patch 7a20d76
failed when the Haskell expression lacked a meta attribute. This commit fixes that issue.
This commit is contained in:
parent
7a20d76482
commit
bddf342631
|
@ -58,7 +58,7 @@ assert !enableStaticLibraries -> versionOlder "7.7" ghc.version;
|
||||||
doCheck = enableCheckPhase && x.doCheck;
|
doCheck = enableCheckPhase && x.doCheck;
|
||||||
hyperlinkSource = enableHyperlinkSource && x.hyperlinkSource;
|
hyperlinkSource = enableHyperlinkSource && x.hyperlinkSource;
|
||||||
# Disable Darwin builds: <https://github.com/NixOS/nixpkgs/issues/2689>.
|
# Disable Darwin builds: <https://github.com/NixOS/nixpkgs/issues/2689>.
|
||||||
meta = let meta = x.meta;
|
meta = let meta = x.meta or {};
|
||||||
hydraPlatforms = meta.hydraPlatforms or meta.platforms or [];
|
hydraPlatforms = meta.hydraPlatforms or meta.platforms or [];
|
||||||
noElem = p: ps: !stdenv.lib.elem p ps;
|
noElem = p: ps: !stdenv.lib.elem p ps;
|
||||||
noDarwin = p: noElem p stdenv.lib.platforms.darwin;
|
noDarwin = p: noElem p stdenv.lib.platforms.darwin;
|
||||||
|
|
Loading…
Reference in a new issue