From 13a2b063cca17a95e7958801855018e26d463e2f 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 cross for gpi-2 --- 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 a341f369..cfb476da 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" "--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" ];