about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2024-03-21 10:00:46 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2024-03-21 10:00:46 +0100
commit367912953c382ed11b5e4d94145e8206d9a20274 (patch)
tree00810a5bea7bb6fcb3906e8ab7c97e33f1b154b3 /pkgs
parent88801dab5eff529e79f066a7bb230842b876ccb1 (diff)
libdbiDrivers: fix build with clang
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/libdbi-drivers/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libdbi-drivers/default.nix b/pkgs/development/libraries/libdbi-drivers/default.nix
index 04ff250e4812b..f1352cd47b927 100644
--- a/pkgs/development/libraries/libdbi-drivers/default.nix
+++ b/pkgs/development/libraries/libdbi-drivers/default.nix
@@ -46,6 +46,11 @@ stdenv.mkDerivation rec {
     "--with-pgsql_libdir=${postgresql.lib}/lib"
   ];
 
+  env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [
+    "-Wno-error=incompatible-function-pointer-types"
+    "-Wno-error=int-conversion"
+  ]);
+
   installFlags = [ "DESTDIR=\${out}" ];
 
   postInstall = ''