libpqxx: Only override stdenv for GCC, not for clang

This makes sure that libpqxx uses the same naming conventions as
everything else on macOS.

(cherry picked from commit 130148d908)
This commit is contained in:
Yuriy Taraday
2026-08-13 15:14:47 +02:00
committed by github-actions[bot]
parent 4f0db8e3eb
commit ad652ff636

View File

@@ -12,7 +12,7 @@
# Work around issue reported in https://github.com/NixOS/nixpkgs/issues/476278.
# Should be solved when libpqxx 8.x is released.
gcc14Stdenv.mkDerivation (finalAttrs: {
(if stdenv.cc.isGNU then gcc14Stdenv else stdenv).mkDerivation (finalAttrs: {
pname = "libpqxx";
version = "7.10.7";