From 38d217483363bae4a62727c0395fd2e075199d13 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Thu, 13 Jul 2023 14:12:25 -0600 Subject: [PATCH] python3Packages.shiboken6: fix build with clang-based stdenvs Using `llvmPackages.stdenv` results in linking against a different libc++ than the one linked by Qt, which causes it to crash. --- pkgs/development/python-modules/shiboken6/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/shiboken6/default.nix b/pkgs/development/python-modules/shiboken6/default.nix index 9bf4f0d6482e..bbbe7c998624 100644 --- a/pkgs/development/python-modules/shiboken6/default.nix +++ b/pkgs/development/python-modules/shiboken6/default.nix @@ -9,7 +9,10 @@ , libxcrypt }: -llvmPackages.stdenv.mkDerivation rec { +let + stdenv' = if stdenv.cc.isClang then stdenv else llvmPackages.stdenv; +in +stdenv'.mkDerivation rec { pname = "shiboken6"; version = "6.5.0";