busybox: only use stdenv.cc.libc.static when it exists

causes on evaluation error on macOS otherwise
This commit is contained in:
Matthew Bauer 2019-05-08 21:54:27 -04:00
parent 476c580605
commit dbd1a4481f

View file

@ -94,7 +94,7 @@ stdenv.mkDerivation rec {
depsBuildBuild = [ buildPackages.stdenv.cc ];
buildInputs = lib.optionals (enableStatic && !useMusl) [ stdenv.cc.libc stdenv.cc.libc.static ];
buildInputs = lib.optionals (enableStatic && !useMusl && stdenv.cc.libc ? static) [ stdenv.cc.libc stdenv.cc.libc.static ];
enableParallelBuilding = true;