pe-parse: fix build on darwin

(cherry picked from commit 4a90d51bb8)
This commit is contained in:
Weijia Wang 2024-05-30 02:22:35 +02:00 committed by github-actions[bot]
parent d24e7fdcfa
commit 3a49fc3c75

View file

@ -13,6 +13,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [
"-Wno-error=deprecated-declarations"
]);
doInstallCheck = true; doInstallCheck = true;
installCheckPhase = '' installCheckPhase = ''
$out/bin/dump-pe ../tests/assets/example.exe $out/bin/dump-pe ../tests/assets/example.exe