about summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-11-10 09:39:38 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-11-10 09:39:38 +0100
commit7cbcabc8342788ec0c7bf8e13001aed4a646deb1 (patch)
treee13dbce2e618c506aa79fef09a8534d87311cfc1 /pkgs/tools/text
parenta38b57a3adfe2f088a5b9af472748a6ce67b78c6 (diff)
downloadnixlib-7cbcabc8342788ec0c7bf8e13001aed4a646deb1.tar
nixlib-7cbcabc8342788ec0c7bf8e13001aed4a646deb1.tar.gz
nixlib-7cbcabc8342788ec0c7bf8e13001aed4a646deb1.tar.bz2
nixlib-7cbcabc8342788ec0c7bf8e13001aed4a646deb1.tar.lz
nixlib-7cbcabc8342788ec0c7bf8e13001aed4a646deb1.tar.xz
nixlib-7cbcabc8342788ec0c7bf8e13001aed4a646deb1.tar.zst
nixlib-7cbcabc8342788ec0c7bf8e13001aed4a646deb1.zip
html2text: fix build with clang 16
Diffstat (limited to 'pkgs/tools/text')
-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 fff3e44baf69..7ef802e925fb 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