bscpkgs/bsc/cpic/default.nix

51 lines
736 B
Nix
Raw Normal View History

2020-06-11 19:04:16 +02:00
{
stdenv
, libconfig
, nanos6
, mpi
, uthash
, fftw
2020-06-15 11:54:22 +02:00
, tampi
, hdf5
2020-06-11 19:04:16 +02:00
}:
2020-06-15 11:54:22 +02:00
stdenv.mkDerivation rec {
2020-06-11 19:04:16 +02:00
name = "cpic";
2020-06-15 11:54:22 +02:00
# Use my current cpic version, so I can test changes without commits
src = /home/Computational/rarias/cpic;
2020-06-11 19:04:16 +02:00
# src = builtins.fetchGit {
# url = "https://github.com/rodarima/cpic";
## rev = "73bd70448587f0925b89e24c8f17e412ea3958e6";
# ref = "master";
# };
2020-06-15 11:54:22 +02:00
postConfigure = ''
2020-06-17 13:00:49 +02:00
env
2020-06-15 11:54:22 +02:00
'';
preConfigure = ''
2020-06-15 12:45:16 +02:00
export TAMPI_HOME="${tampi}"
2020-06-17 13:22:06 +02:00
#export NIX_DEBUG=5
2020-06-11 19:04:16 +02:00
'';
2020-06-17 13:22:06 +02:00
enableParallelBuilding = true;
2020-06-15 12:58:27 +02:00
dontStrip = true;
2020-06-11 19:04:16 +02:00
buildInputs = [
libconfig
nanos6
mpi
uthash
fftw
2020-06-15 12:45:16 +02:00
tampi
2020-06-15 11:54:22 +02:00
hdf5
2020-06-11 19:04:16 +02:00
];
2020-06-15 11:54:22 +02:00
installPhase = ''
mkdir -p $out/bin
cp cpic $out/bin/cpic
'';
2020-06-11 19:04:16 +02:00
}