bscpkgs/bsc/apps/nbody/default.nix

38 lines
516 B
Nix
Raw Normal View History

2020-06-29 16:42:25 +02:00
{
stdenv
, nanos6
, mpi
, tampi
2020-06-29 17:40:25 +02:00
, mcxx
2020-07-01 17:58:29 +02:00
, icc
2020-06-29 16:42:25 +02:00
}:
stdenv.mkDerivation rec {
name = "nbody";
src = builtins.fetchGit {
url = "ssh://git@bscpm02.bsc.es/benchmarks/ompss-2/nbody-conflict-kevin.git";
#rev = "a8372abf9fc7cbc2db0778de80512ad4af244c29";
ref = "master";
};
2020-06-30 12:19:36 +02:00
patchPhase = ''
2020-07-02 12:35:21 +02:00
sed -i 's/gcc/icc/g' Makefile
export NIX_DEBUG=6
2020-06-30 12:19:36 +02:00
'';
2020-06-29 16:42:25 +02:00
buildInputs = [
nanos6
mpi
2020-07-01 17:58:29 +02:00
icc
2020-06-29 16:42:25 +02:00
tampi
2020-06-29 17:40:25 +02:00
mcxx
2020-06-29 16:42:25 +02:00
];
installPhase = ''
mkdir -p $out/bin
cp nbody_* $out/bin/
'';
2020-07-01 17:58:29 +02:00
2020-06-29 16:42:25 +02:00
}