strace: fix libunwind detection by fixing use of lib.optional (#40994)

This commit is contained in:
Will Dietz 2018-05-23 10:15:05 -05:00 committed by xeji
parent 1e225e6481
commit 4bf6889876

View File

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ perl ];
buildInputs = stdenv.lib.optional libunwind.supportsHost [ libunwind ]; # support -k
buildInputs = stdenv.lib.optional libunwind.supportsHost libunwind; # support -k
configureFlags = stdenv.lib.optional (stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isRiscV) "--enable-mpers=check";