Prefer makeFlags and use local directory

This commit is contained in:
Rodrigo Arias 2020-07-02 15:54:41 +02:00
parent 940c494d8e
commit e0c5a3ebca

View File

@ -11,12 +11,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "saiph"; name = "saiph";
src = builtins.fetchGit { # src = builtins.fetchGit {
url = "ssh://git@bscpm02.bsc.es/DSLs/saiph.git"; # url = "ssh://git@bscpm02.bsc.es/DSLs/saiph.git";
#rev = "a8372abf9fc7cbc2db0778de80512ad4af244c29"; # #rev = "a8372abf9fc7cbc2db0778de80512ad4af244c29";
ref = "VectorisationSupport"; # ref = "VectorisationSupport";
}; # };
src = /tmp/saiph;
enableParallelBuilding = true; enableParallelBuilding = true;
dontStrip = true; dontStrip = true;
@ -30,16 +31,19 @@ stdenv.mkDerivation rec {
boost boost
]; ];
buildPhase = '' preBuild = ''
pwd
cd saiphv2/cpp/src cd saiphv2/cpp/src
export VTK_VERSION=8.2 export VTK_VERSION=8.2
export VTK_HOME=${vtk} export VTK_HOME=${vtk}
export SAIPH_HOME=. export SAIPH_HOME=.
make -f Makefile.clang
make -f Makefile.clang apps APP=ExHeat -j
''; '';
makeFlags = [
"-f" "Makefile.clang"
"apps"
"APP=ExHeat"
];
installPhase = '' installPhase = ''
mkdir -p $out/lib mkdir -p $out/lib
mkdir -p $out/bin mkdir -p $out/bin