From 0d892129691b4523b7467aaf7b0a45c86433ecd1 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Fri, 9 Feb 2024 12:47:23 +1300 Subject: [PATCH] Only use autoPatchelfHook on !darwin --- default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/default.nix b/default.nix index 790a128..9ad875b 100644 --- a/default.nix +++ b/default.nix @@ -64,7 +64,10 @@ rec { inherit platform arch targets; }; - nativeBuildInputs = [ which cmake autoPatchelfHook ]; + nativeBuildInputs = + [ which cmake ] + ++ lib.optional (!stdenv.isDarwin) autoPatchelfHook + ; buildInputs = [ stdenv.cc.cc python3 ]; @@ -123,7 +126,10 @@ rec { src = fetchSDKFile "hosttools_${platform}-${arch}.tar.xz"; - nativeBuildInputs = [ which autoPatchelfHook ]; + nativeBuildInputs = + [ which ] + ++ lib.optional (!stdenv.isDarwin) autoPatchelfHook + ; buildInputs = [ python3 ];