bscpkgs/garlic/apps/cpic/default.nix

42 lines
610 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
2020-06-17 16:39:04 +02:00
#src = /home/Computational/rarias/cpic;
2020-06-15 11:54:22 +02:00
2020-06-17 16:39:04 +02:00
src = builtins.fetchGit {
url = "https://github.com/rodarima/cpic";
# rev = "73bd70448587f0925b89e24c8f17e412ea3958e6";
ref = "simd";
};
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
}