about summary refs log tree commit diff
path: root/pkgs/tools/text/xml
diff options
context:
space:
mode:
authorEmily Trau <emily@downunderctf.com>2023-11-29 14:06:08 +1100
committerEmily Trau <emily@downunderctf.com>2023-11-29 14:06:40 +1100
commit54bd72c1d3f43aae39ff1534e955be47644a69a3 (patch)
treeed4fb7ee49417f7d28ef440d736122e3fd15b0e8 /pkgs/tools/text/xml
parent10ee18ca9265cada45acfc7a6d7644cd22b82465 (diff)
rxp: fix clang build
Diffstat (limited to 'pkgs/tools/text/xml')
-rw-r--r--pkgs/tools/text/xml/rxp/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/text/xml/rxp/default.nix b/pkgs/tools/text/xml/rxp/default.nix
index 918a491ede38d..b45c89af1c03d 100644
--- a/pkgs/tools/text/xml/rxp/default.nix
+++ b/pkgs/tools/text/xml/rxp/default.nix
@@ -9,10 +9,13 @@ stdenv.mkDerivation rec {
     sha256 = "0y365r36wzj4xn1dzhb03spxljnrx8vwqbiwnnwz4630129gzpm6";
   };
 
+  env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=implicit-function-declaration -Wno-error=int-conversion";
+
   meta = {
     license = lib.licenses.gpl2Plus;
     description = "A validating XML parser written in C";
     homepage = "https://www.cogsci.ed.ac.uk/~richard/rxp.html";
     platforms = lib.platforms.unix;
+    mainProgram = "rxp";
   };
 }