Commit a6ef97c2 authored by Valentin Reis's avatar Valentin Reis
Browse files

WIP for new libnrm.

parent 4c857ab6
......@@ -33,7 +33,7 @@ in rec {
qmcpack = callPackage applications/qmcpack {};
openmc = callPackage applications/openmc {};
stream = callPackage applications/stream {};
graph500 = callPackage applications/graph500 {};
graph500 = callPackage applications/graph500 {inherit libnrm;};
simple = callPackage applications/simple {inherit intel libnrm;};
};
......
{ stdenv, fetchgit, zeromq, mpich2, gfortran }:
stdenv.mkDerivation {
name = "libnrm";
src = fetchgit {
url="https://xgitlab.cels.anl.gov/argo/libnrm.git";
sha256="0n4bc29x9ngp7dv5np69bjg4nqbmqn93szpd6czzhs1r89wz0pdh";
{ stdenv, autoreconfHook, fetchgit, zeromq, gfortran, pkgconfig, mpich2 }:
rec {
libnrm = stdenv.mkDerivation {
name = "libnrm";
src = fetchgit {
url="https://xgitlab.cels.anl.gov/argo/libnrm.git";
sha256="0n4bc29x9ngp7dv5np69bjg4nqbmqn93szpd6czzhs1r89wz0pdh";
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ zeromq gfortran ];
};
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
'';
pmpi = libnrm.overrideAttrs (oldAttrs: rec {
configureFlags = "--enable-pmpi";
buildInputs = oldAttrs.buildInputs ++ [ mpich2 ];
});
}
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