From 9d966564329d31c23301d2517dc999858a704b04 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Fri, 19 Jan 2024 22:22:20 -0800 Subject: [PATCH] pjsip: cope with !(stdenv.cc.libcxx?cxxabi) --- pkgs/applications/networking/pjsip/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/networking/pjsip/default.nix b/pkgs/applications/networking/pjsip/default.nix index 1943a395bd7b7..6f0f5417452fa 100644 --- a/pkgs/applications/networking/pjsip/default.nix +++ b/pkgs/applications/networking/pjsip/default.nix @@ -35,7 +35,7 @@ stdenv.mkDerivation (finalAttrs: { ++ lib.optional stdenv.isLinux alsa-lib ++ lib.optionals stdenv.isDarwin [ AppKit CoreFoundation Security ]; - env = lib.optionalAttrs (stdenv.cc.libcxx != null) { + env = lib.optionalAttrs (stdenv.cc.libcxx != null && stdenv.cc.libcxx?cxxabi.libName) { # work around https://github.com/NixOS/nixpkgs/issues/166205 NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}"; } // lib.optionalAttrs stdenv.cc.isClang {