xfitter: fix for recent clang (#288816)

This commit is contained in:
Dmitry Kalinkin 2024-02-14 18:51:35 -05:00 committed by GitHub
parent fc1b4c9c0d
commit 3b27f2ac6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,6 +47,8 @@ stdenv.mkDerivation rec {
env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.hostPlatform.libc == "glibc") "-I${libtirpc.dev}/include/tirpc";
NIX_LDFLAGS = lib.optional (stdenv.hostPlatform.libc == "glibc") "-ltirpc";
hardeningDisable = [ "format" ];
# workaround wrong library IDs
postInstall = lib.optionalString stdenv.isDarwin ''
ln -sv "$out/lib/xfitter/"* "$out/lib/"