bscpkgs/bsc/apps/cpic/default.nix

42 lines
610 B
Nix
Raw Normal View History

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