Merge pull request #265489 from wegank/cvs-clang-16

cvs: fix build with clang 16
This commit is contained in:
Weijia Wang
2023-11-05 15:17:28 +01:00
committed by GitHub
2 changed files with 8 additions and 0 deletions
@@ -27,6 +27,10 @@ stdenv.mkDerivation rec {
)
'';
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration";
};
postInstall = ''
wrapProgram $out/bin/cvssync --prefix PATH : ${lib.makeBinPath [ rsync ]}
wrapProgram $out/bin/cvsconvert --prefix PATH : $out/bin:${lib.makeBinPath [
@@ -40,6 +40,10 @@ stdenv.mkDerivation rec {
"AR=${stdenv.cc.targetPrefix}ar"
];
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration";
};
doCheck = false; # fails 1 of 1 tests
meta = with lib; {