From 39d64456a4c720bea198fa6f104bbfa13e6a1eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Fri, 10 Oct 2025 11:56:18 +0200 Subject: [PATCH] Fix nativeBuildInputs for gpi-2 Reviewed-by: Rodrigo Arias Mallo --- pkgs/gpi-2/default.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pkgs/gpi-2/default.nix b/pkgs/gpi-2/default.nix index a341f36..74bf196 100644 --- a/pkgs/gpi-2/default.nix +++ b/pkgs/gpi-2/default.nix @@ -9,7 +9,6 @@ , automake , libtool , mpi -, rsync , gfortran }: @@ -44,13 +43,24 @@ stdenv.mkDerivation rec { configureFlags = [ "--with-infiniband=${rdma-core-all}" - "--with-mpi=${mpiAll}" + "--with-mpi=yes" # fixes mpi detection when cross-compiling "--with-slurm" "CFLAGS=-fPIC" "CXXFLAGS=-fPIC" ]; - buildInputs = [ slurm mpiAll rdma-core-all autoconf automake libtool rsync gfortran ]; + nativeBuildInputs = [ + autoconf + automake + gfortran + libtool + ]; + + buildInputs = [ + slurm + mpiAll + rdma-core-all + ]; hardeningDisable = [ "all" ];