Commit 95123a76 authored by Valentin Reis's avatar Valentin Reis
Browse files

[pkgs] fixed qmcpack build override.

parent f938dd31
......@@ -5,8 +5,6 @@ stdenv.mkDerivation {
cmakeFlags = [
"-DCMAKE_C_COMPILER=${openmpi}/bin/mpicc"
"-DCMAKE_CXX_COMPILER=${openmpi}/bin/mpic++"
''-DQMC_INCLUDE="${NRM_H_HOME}"''
''-DQMC_EXTRA_LIBS="${NRM_LIB_HOME}/libnrm.so''
];
nativeBuildInputs = [ cmake openmpi ];
buildInputs = [ liblapack openblas fftw libxml2 hdf5 hdf5-fortran pythonPackages.numpy gfortran boost ];
......
......@@ -57,6 +57,10 @@ in rec {
(cpAlternatePin path {} "nrm").overrideAttrs (oldAttrs:
{
buildInputs = oldAttrs.buildInputs ++ [nodelevel.libnrm];
cmakeFlags = if (name=="qmcpack") then
(oldAttrs.cmakeFlags ++ [ ''-DQMC_INCLUDE="${nodelevel.libnrm}/include/"'' ''-DQMC_EXTRA_LIBS="${nodelevel.libnrm}/lib/libnrm.so'' ])
else
[];
});
in
rec {
......
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