tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ncurses: Fix shouldUsePkg on darwin
Shea Levy
10 years ago
82ba1311
4a22a442
+5
-1
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
ncurses
default.nix
+5
-1
pkgs/development/libraries/ncurses/default.nix
···
16
16
mkWith = mkFlag "with-" "without-";
17
17
mkOther = mkFlag "" "" true;
18
18
19
19
-
shouldUsePkg = pkg: if pkg != null && stdenv.lib.any (x: x == stdenv.system) pkg.meta.platforms then pkg else null;
19
19
+
shouldUsePkg = pkg_: let
20
20
+
pkg = (builtins.tryEval pkg_).value;
21
21
+
in if stdenv.lib.any (x: x == stdenv.system) (pkg.meta.platforms or [])
22
22
+
then pkg
23
23
+
else null;
20
24
21
25
buildShared = !stdenv.isDarwin;
22
26