mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
python3Packages.cxxfilt: fix on darwin
This commit is contained in:
parent
2d64c6d79b
commit
31d8371442
@ -1,4 +1,5 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, gcc-unwrapped
|
||||
@ -12,9 +13,11 @@ buildPythonPackage rec {
|
||||
sha256 = "ef6810e76d16c95c11b96371e2d8eefd1d270ec03f9bcd07590e8dcc2c69e92b";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
postPatch = let
|
||||
libstdcpp = "${lib.getLib gcc-unwrapped}/lib/libstdc++${stdenv.hostPlatform.extensions.sharedLibrary}";
|
||||
in ''
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user