about summary refs log tree commit diff
path: root/pkgs/development/python-modules/cxxfilt/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/cxxfilt/default.nix')
-rw-r--r--pkgs/development/python-modules/cxxfilt/default.nix31
1 files changed, 16 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/cxxfilt/default.nix b/pkgs/development/python-modules/cxxfilt/default.nix
index 2bf02c564256..e82f5c6e880e 100644
--- a/pkgs/development/python-modules/cxxfilt/default.nix
+++ b/pkgs/development/python-modules/cxxfilt/default.nix
@@ -1,8 +1,9 @@
-{ lib
-, stdenv
-, buildPythonPackage
-, fetchPypi
-, gcc-unwrapped
+{
+  lib,
+  stdenv,
+  buildPythonPackage,
+  fetchPypi,
+  gcc-unwrapped,
 }:
 buildPythonPackage rec {
   pname = "cxxfilt";
@@ -14,22 +15,22 @@ buildPythonPackage rec {
     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}"'
-  '';
+  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"
-  ];
+  pythonImportsCheck = [ "cxxfilt" ];
 
   meta = with lib; {
-    description = "Demangling C++ symbols in Python / interface to abi::__cxa_demangle ";
+    description = "Demangling C++ symbols in Python / interface to abi::__cxa_demangle";
     homepage = "https://github.com/afq984/python-cxxfilt";
     license = licenses.bsd2;
     maintainers = [ ];