From 266707df9d1fac0c959a90562051d81bfdeaed5a Mon Sep 17 00:00:00 2001 From: David Mak Date: Fri, 26 Jul 2024 10:37:08 +0800 Subject: [PATCH] standalone: Add support for running 32-bit binaries --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 4febca246..d10bab129 100644 --- a/flake.nix +++ b/flake.nix @@ -24,7 +24,7 @@ lockFile = ./Cargo.lock; }; passthru.cargoLock = cargoLock; - nativeBuildInputs = [ pkgs.python3 pkgs.llvmPackages_14.clang llvm-tools-irrt pkgs.llvmPackages_14.llvm.out llvm-nac3 ]; + nativeBuildInputs = [ pkgs.python3 (pkgs.wrapClangMulti pkgs.llvmPackages_14.clang) llvm-tools-irrt pkgs.llvmPackages_14.llvm.out llvm-nac3 ]; buildInputs = [ pkgs.python3 llvm-nac3 ]; checkInputs = [ (pkgs.python3.withPackages(ps: [ ps.numpy ps.scipy ])) ]; checkPhase = @@ -149,7 +149,7 @@ buildInputs = with pkgs; [ # build dependencies packages.x86_64-linux.llvm-nac3 - llvmPackages_14.clang llvmPackages_14.llvm.out # for running nac3standalone demos + (pkgs.wrapClangMulti llvmPackages_14.clang) llvmPackages_14.llvm.out # for running nac3standalone demos packages.x86_64-linux.llvm-tools-irrt cargo rustc