python3Packages.cxxfilt: fix on darwin

This commit is contained in:
Robert T. McGibbon 2021-05-07 18:51:08 -04:00
parent 2d64c6d79b
commit 31d8371442

View file

@ -1,4 +1,5 @@
{ lib { lib
, stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, gcc-unwrapped , gcc-unwrapped
@ -12,9 +13,11 @@ buildPythonPackage rec {
sha256 = "ef6810e76d16c95c11b96371e2d8eefd1d270ec03f9bcd07590e8dcc2c69e92b"; sha256 = "ef6810e76d16c95c11b96371e2d8eefd1d270ec03f9bcd07590e8dcc2c69e92b";
}; };
postPatch = '' postPatch = let
libstdcpp = "${lib.getLib gcc-unwrapped}/lib/libstdc++${stdenv.hostPlatform.extensions.sharedLibrary}";
in ''
substituteInPlace cxxfilt/__init__.py \ substituteInPlace cxxfilt/__init__.py \
--replace "find_any_library('stdc++', 'c++')" '"${lib.getLib gcc-unwrapped}/lib/libstdc++.so"' --replace "find_any_library('stdc++', 'c++')" '"${libstdcpp}"'
''; '';
# no tests # no tests