From bddf342631ce417dac99f6f222075c51cf4109de Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 22 Oct 2014 00:23:12 +0200 Subject: [PATCH] Patch 7a20d76 failed when the Haskell expression lacked a meta attribute. This commit fixes that issue. --- pkgs/build-support/cabal/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/cabal/default.nix b/pkgs/build-support/cabal/default.nix index 2b06adf3490c..3fa833876921 100644 --- a/pkgs/build-support/cabal/default.nix +++ b/pkgs/build-support/cabal/default.nix @@ -58,7 +58,7 @@ assert !enableStaticLibraries -> versionOlder "7.7" ghc.version; doCheck = enableCheckPhase && x.doCheck; hyperlinkSource = enableHyperlinkSource && x.hyperlinkSource; # Disable Darwin builds: . - meta = let meta = x.meta; + meta = let meta = x.meta or {}; hydraPlatforms = meta.hydraPlatforms or meta.platforms or []; noElem = p: ps: !stdenv.lib.elem p ps; noDarwin = p: noElem p stdenv.lib.platforms.darwin;