mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
543cd40ecc
Done using `grep -rP 'description\s+=\s+"[^"]+[ ]";' | cut -d ':' -f 1 | xargs -i nvim {}` and sorting the opened files by hand, avoiding generated packages list
39 lines
873 B
Nix
39 lines
873 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
gcc-unwrapped,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "cxxfilt";
|
|
version = "0.3.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "7df6464ba5e8efbf0d8974c0b2c78b32546676f06059a83515dbdfa559b34214";
|
|
};
|
|
|
|
postPatch =
|
|
let
|
|
libstdcpp = "${lib.getLib gcc-unwrapped}/lib/libstdc++${stdenv.hostPlatform.extensions.sharedLibrary}";
|
|
in
|
|
''
|
|
substituteInPlace cxxfilt/__init__.py \
|
|
--replace "find_any_library('stdc++', 'c++')" '"${libstdcpp}"'
|
|
'';
|
|
|
|
# no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "cxxfilt" ];
|
|
|
|
meta = with lib; {
|
|
description = "Demangling C++ symbols in Python / interface to abi::__cxa_demangle";
|
|
homepage = "https://github.com/afq984/python-cxxfilt";
|
|
license = licenses.bsd2;
|
|
maintainers = [ ];
|
|
};
|
|
}
|