Merge pull request #315846 from wegank/gamin-darwin

gamin: fix build on darwin
This commit is contained in:
Weijia Wang 2024-05-31 13:48:31 +02:00 committed by GitHub
commit ef54ee7074
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,6 +25,10 @@ stdenv.mkDerivation rec {
sed -i 's/,--version-script=.*$/\\/' libgamin/Makefile
'';
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
};
patches = [ ./deadlock.patch ]
++ map fetchurl (import ./debian-patches.nix)
++ lib.optional stdenv.cc.isClang ./returnval.patch