From 0003235d8c0bc931e47267326998e55856bbbc67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marijan=20Petri=C4=8Devi=C4=87?= Date: Tue, 20 Feb 2024 12:18:26 +0700 Subject: [PATCH] pkgs/r0vm: only add NIX_LDFLAGS if libcxx not null --- pkgs/r0vm/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/r0vm/default.nix b/pkgs/r0vm/default.nix index 3b095d5..74a04e5 100644 --- a/pkgs/r0vm/default.nix +++ b/pkgs/r0vm/default.nix @@ -29,7 +29,7 @@ rustPlatform.buildRustPackage rec { ]; # Workaround for https://github.com/NixOS/nixpkgs/issues/166205 - env = lib.optionalAttrs stdenv.cc.isClang { + env = (lib.optionalAttrs stdenv.cc.isClang && stdenv.cc.libcxx != null) { NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}"; };