Only use autoPatchelfHook on !darwin

This commit is contained in:
adisbladis 2024-02-09 12:47:23 +13:00
parent 2f1680b11b
commit 0d89212969
1 changed files with 8 additions and 2 deletions

View File

@ -64,7 +64,10 @@ rec {
inherit platform arch targets; inherit platform arch targets;
}; };
nativeBuildInputs = [ which cmake autoPatchelfHook ]; nativeBuildInputs =
[ which cmake ]
++ lib.optional (!stdenv.isDarwin) autoPatchelfHook
;
buildInputs = [ stdenv.cc.cc python3 ]; buildInputs = [ stdenv.cc.cc python3 ];
@ -123,7 +126,10 @@ rec {
src = fetchSDKFile "hosttools_${platform}-${arch}.tar.xz"; src = fetchSDKFile "hosttools_${platform}-${arch}.tar.xz";
nativeBuildInputs = [ which autoPatchelfHook ]; nativeBuildInputs =
[ which ]
++ lib.optional (!stdenv.isDarwin) autoPatchelfHook
;
buildInputs = [ python3 ]; buildInputs = [ python3 ];