diff options
author | Cole Helbling <cole.e.helbling@outlook.com> | 2021-04-18 09:38:39 -0700 |
---|---|---|
committer | Cole Helbling <cole.e.helbling@outlook.com> | 2021-04-21 11:21:09 -0700 |
commit | 4fe4272847c3b2596c82d1dcd1af55e282b92c97 (patch) | |
tree | eea2e65b3a066a32547841775ce2247a23b61063 /pkgs/development/python-modules/cxxfilt | |
parent | 20313e8b73809979be473f63036860933c43fc7e (diff) |
python2.pkgs.cxxfilt: init at 0.2.2
Diffstat (limited to 'pkgs/development/python-modules/cxxfilt')
-rw-r--r-- | pkgs/development/python-modules/cxxfilt/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cxxfilt/default.nix b/pkgs/development/python-modules/cxxfilt/default.nix new file mode 100644 index 0000000000000..580d698d8dabe --- /dev/null +++ b/pkgs/development/python-modules/cxxfilt/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, fetchPypi +, gcc-unwrapped +}: +buildPythonPackage rec { + pname = "cxxfilt"; + version = "0.2.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "ef6810e76d16c95c11b96371e2d8eefd1d270ec03f9bcd07590e8dcc2c69e92b"; + }; + + postPatch = '' + substituteInPlace cxxfilt/__init__.py \ + --replace "find_any_library('stdc++', 'c++')" '"${lib.getLib gcc-unwrapped}/lib/libstdc++.so"' + ''; + + # 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 = teams.determinatesystems.members; + }; +} |