Unverified Commit b974b808 authored by Randy Eckenrode's avatar Randy Eckenrode
Browse files

haskell-modules/generic-builder.nix: set `NIX_LDFLAGS` at the top level

This is a follow-up PR to #266172 to address the feedback left by
@sternenseemann regarding `env`.

Rebuilds on staging-next #263535 should be limited if there are any.
parent eb26e06e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -816,7 +816,7 @@ stdenv.mkDerivation ({
# Works around https://github.com/NixOS/nixpkgs/issues/166205.
# This can be dropped once a fix has been committed to cc-wrapper.
// lib.optionalAttrs (stdenv.cc.isClang && stdenv.cc.libcxx != null) {
  env.NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
  NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
}
)
)