libgee, libgda, zile: fix compiling with clang (#341109)

This commit is contained in:
Fabián Heredia Montiel
2024-09-12 18:37:38 -06:00
committed by GitHub
4 changed files with 7 additions and 0 deletions
@@ -39,6 +39,8 @@ stdenv.mkDerivation rec {
# fiddle with the terminal.
doCheck = false;
env.NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isClang "-Wno-error=incompatible-function-pointer-types";
# XXX: Work around cross-compilation-unfriendly `gl_FUNC_FSTATAT' macro.
gl_cv_func_fstatat_zero_flag="yes";
@@ -85,6 +85,8 @@ stdenv.mkDerivation rec {
postgresql
];
env.NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isClang "-Wno-error=incompatible-function-pointer-types";
postPatch = ''
patchShebangs \
providers/raw_spec.py \
@@ -82,6 +82,8 @@ stdenv.mkDerivation rec {
"--enable-system-sqlite=${if stdenv.isDarwin then "no" else "yes"}"
];
env.NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isClang "-Wno-error=incompatible-function-pointer-types";
enableParallelBuilding = true;
hardeningDisable = [ "format" ];
@@ -34,6 +34,7 @@ stdenv.mkDerivation (finalAttrs: {
doCheck = true;
env = {
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=incompatible-function-pointer-types";
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR = "${placeholder "dev"}/share/gir-1.0";
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR = "${placeholder "out"}/lib/girepository-1.0";
};