ncurses: Fix shouldUsePkg on darwin

Shea Levy 82ba1311 4a22a442

+5 -1
+5 -1
pkgs/development/libraries/ncurses/default.nix
··· 16 16 mkWith = mkFlag "with-" "without-"; 17 17 mkOther = mkFlag "" "" true; 18 18 19 - shouldUsePkg = pkg: if pkg != null && stdenv.lib.any (x: x == stdenv.system) pkg.meta.platforms then pkg else null; 19 + shouldUsePkg = pkg_: let 20 + pkg = (builtins.tryEval pkg_).value; 21 + in if stdenv.lib.any (x: x == stdenv.system) (pkg.meta.platforms or []) 22 + then pkg 23 + else null; 20 24 21 25 buildShared = !stdenv.isDarwin; 22 26