check: fix compilation on cross-compiled musl (#260675)

on cross-compiled musl vsnprintf gets detected as non-compliant with c99.
The included replacement is incompatible with SOURCE_FORTIFY.
This commit is contained in:
Kiskae 2023-10-14 17:04:59 +02:00 committed by GitHub
parent 114236d101
commit a4e2dd0f72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,9 @@ stdenv.mkDerivation rec {
sha256 = "02m25y9m46pb6n46s51av62kpd936lkfv3b13kfpckgvmh5lxpm8";
};
# fortify breaks the libcompat vsnprintf implementation
hardeningDisable = lib.optionals (stdenv.hostPlatform.isMusl && (stdenv.hostPlatform != stdenv.buildPlatform)) [ "fortify" ];
# Test can randomly fail: https://hydra.nixos.org/build/7243912
doCheck = false;