Commit 4d1d2e29 authored by Valentin Reis's avatar Valentin Reis
Browse files

Merge branch 'libnrm-autotools' into refactor-simple

parents c7553bfb a6ef97c2
......@@ -36,6 +36,10 @@ in rec {
nodelevel = rec {
libnrm = cpDefaultPin ./libnrm {};
libnrm-pmpi = libnrm.overrideAttrs (oldAttrs: rec {
configureFlags = "--enable-pmpi";
buildInputs = oldAttrs.buildInputs ++ [ mpich2 ];
});
containers = cpDefaultPin ./containers { inherit pythonPackages; };
containers-bandit = cpAlternatePin ./containers { inherit pythonPackages; } "bandit";
nrm = cpDefaultPin ./nrm { inherit pythonPackages; nrm-containers = containers; };
......
{ stdenv, src, fetchgit, zeromq, mpich2, gfortran }:
{ stdenv, autoreconfHook, fetchgit, zeromq, gfortran, pkgconfig, mpich2 }:
stdenv.mkDerivation {
inherit src;
name = "libnrm";
buildInputs = [ zeromq mpich2 gfortran ];
buildPhase = "make ZMQ_PATH=${zeromq} MPI_INCLUDE=${mpich2}";
installPhase = ''
mkdir -p $out/lib
mkdir -p $out/include
cp *.h $out/include
cp *.so $out/lib
'';
}
name = "libnrm";
src = fetchgit {
url="https://xgitlab.cels.anl.gov/argo/libnrm.git";
sha256="0n4bc29x9ngp7dv5np69bjg4nqbmqn93szpd6czzhs1r89wz0pdh";
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ zeromq gfortran ];
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment