Commit d3b5b5b9 authored by Valentin Reis's avatar Valentin Reis

[Fix] Application Packaging: fixing the src argument in derivations.

parent fbe61fa8
{ stdenv, fetchgit, mpich2, cmake, gfortran, hdf5 , hdf5-cpp , hdf5-fortran , pkgconfig}:
{ stdenv, src, fetchgit, mpich2, cmake, gfortran, hdf5 , hdf5-cpp , hdf5-fortran , pkgconfig}:
stdenv.mkDerivation {
inherit src;
name = "OpenMC";
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
#'';
}
{ stdenv, fetchgit, openmpi, cmake, liblapack, openblas, fftw, libxml2, hdf5, pythonPackages, hdf5-fortran, gfortran}:
{ stdenv, src, fetchgit, openmpi, cmake, liblapack, openblas, fftw, libxml2, hdf5, pythonPackages, hdf5-fortran, gfortran}:
stdenv.mkDerivation {
inherit src;
name = "qmcpack";
src = fetchgit {
url="https://github.com/QMCPACK/qmcpack.git";
sha256="0fdlvmg0ri4mpwdxx4ky8mxc4rlkrq25smqld8b02lgjw1dvclki";
rev="1009b07ad6fa873d71a0755747e6a7f610eb169b";
};
cmakeFlags = [
"-DCMAKE_C_COMPILER=${openmpi}/bin/mpicc"
"-DCMAKE_CXX_COMPILER=${openmpi}/bin/mpic++"
];
nativeBuildInputs = [ cmake openmpi ];
buildInputs = [ liblapack openblas fftw libxml2 hdf5 hdf5-fortran pythonPackages.numpy gfortran ];
propagatedBuildInputs = [ pythonPackages.numpy ];
dontUseCmakeBuildDir = true;
preConfigure = ''
cmakeDir=$PWD
cd build
'';
#installPhase = ''
#mkdir -p $out/bin
#cp test/amg $out/bin
#'';
}
{ stdenv, src, zeromq, intel, gsl, libnrm, mpich2}:
stdenv.mkDerivation {
name = "simple-benchmarks";
inherit src;
name = "simple-benchmarks";
requiredSystemFeatures = [ "icc"];
......
......@@ -3,6 +3,7 @@ stdenv.mkDerivation {
name = "stream";
nativeBuildInputs = [ gfortran ];
buildInputs = [ ];
installPhase = ''
mkdir -p $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