Clean cpic dependencies

This commit is contained in:
Rodrigo Arias 2020-06-17 13:22:06 +02:00
parent d9ec42614c
commit ed829aace0

View File

@ -4,14 +4,9 @@
, nanos6 , nanos6
, mpi , mpi
, uthash , uthash
, overrideCC
, llvmPackages_10
, fftw , fftw
, tampi , tampi
, hdf5 , hdf5
, libgcc
, strace
, gcc
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -30,13 +25,12 @@ stdenv.mkDerivation rec {
env env
''; '';
# export NANOS6_HOME="${nanos6}"
preConfigure = '' preConfigure = ''
export TAMPI_HOME="${tampi}" export TAMPI_HOME="${tampi}"
#export NIX_DEBUG=5
''; '';
#enableParallelBuilding = true; enableParallelBuilding = true;
dontStrip = true; dontStrip = true;
buildInputs = [ buildInputs = [
@ -44,23 +38,11 @@ stdenv.mkDerivation rec {
nanos6 nanos6
mpi mpi
uthash uthash
# llvmPackages_10.bintools
fftw fftw
tampi tampi
hdf5 hdf5
libgcc
strace
gcc
]; ];
# Doesnt work
# export LIBRARY_PATH=${libgcc}/lib
# export LD_LIBRARY_PATH=${libgcc}/lib
# buildPhase = ''
# #NIX_DEBUG=5 strace -ff -s99999 -e trace=execve make SHELL='bash -x'
# NIX_DEBUG=5 strace -ff -s99999 -e trace=execve make SHELL='bash -x'
# '';
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
cp cpic $out/bin/cpic cp cpic $out/bin/cpic