From 4bf6889876d9f5583065764680fb60583672e69b Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Wed, 23 May 2018 10:15:05 -0500 Subject: [PATCH] strace: fix libunwind detection by fixing use of lib.optional (#40994) --- pkgs/development/tools/misc/strace/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/strace/default.nix b/pkgs/development/tools/misc/strace/default.nix index fce2fa4fa4b4..a059f5658b07 100644 --- a/pkgs/development/tools/misc/strace/default.nix +++ b/pkgs/development/tools/misc/strace/default.nix @@ -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";