Commit 90dbfa27 authored by Valentin Reis's avatar Valentin Reis

added openmc

parent a1a9174c
......@@ -25,9 +25,11 @@ in rec {
};
applications = {
lammps = pkgs.lampps-mpi;
lammps = pkgs.lammps-mpi;
amg = callPackage ./amg {};
openmc = callPackage ./openmc {};
};
}
# not buildable unless results are present(uses sudo: launch expes in nix-shell)
#appli-enforce = callPackage src/experiments/default.nix
......
{ stdenv, fetchgit, mpich2, cmake, gfortran, hdf5 , hdf5-cpp , hdf5-fortran , pkgconfig}:
stdenv.mkDerivation {
name = "AMG";
src = fetchgit {
url="https://github.com/mit-crpg/openmc.git";
sha256="1kd9p06c7336v1na4hhsfmffdv8qky7jqsi9fhwnnaafbsjvr7mj";
rev="455efffdbf6eacbc0b3b93ad61cfeb24490897d8";
};
#phases = ["unpackPhase" "installPhase"];
#cmakeFlags = [
#"-DHDF5_INCLUDE_DIRS=${hdf5-cpp}/include"
#"-DHDF5_ROOT=${hdf5-cpp}/"
#"-DHDF5_LIBRARIES=${hdf5}/lib"
#"-DHDF5_LIBRARY_DIRS=${hdf5}/lib"
#"-DHDF5_FOUND=true"
#] ;
nativeBuildInputs = [ cmake pkgconfig hdf5 hdf5-cpp hdf5-fortran];
buildInputs = [ gfortran pkgconfig hdf5 hdf5-cpp hdf5-fortran];
#buildPhase = "make ZMQ_PATH=${zeromq} MPI_INCLUDE=${mpich2}";
#propagatedBuildInputs = [zulu];
#installPhase = ''
#mkdir -p $out/bin
#cp test/amg $out/bin
#'';
}
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