summary refs log tree commit diff
path: root/pkgs/tools/text/html2text/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/text/html2text/default.nix')
-rw-r--r--pkgs/tools/text/html2text/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/text/html2text/default.nix b/pkgs/tools/text/html2text/default.nix
index fff3e44baf6..7ef802e925f 100644
--- a/pkgs/tools/text/html2text/default.nix
+++ b/pkgs/tools/text/html2text/default.nix
@@ -13,6 +13,9 @@ stdenv.mkDerivation rec {
     substituteInPlace configure \
         --replace /bin/echo echo \
         --replace CXX=unknown ':'
+  '' + lib.optionalString stdenv.cc.isClang ''
+    substituteInPlace HTMLParser.C \
+      --replace "register " ""
   '';
 
   # the --prefix has no effect