2020-09-30 17:32:49 +02:00
|
|
|
{
|
|
|
|
stdenv
|
2020-10-01 16:48:35 +02:00
|
|
|
, granul ? 0
|
|
|
|
, nprocz ? 0
|
2020-09-30 17:32:49 +02:00
|
|
|
, gitBranch
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "creams-input";
|
|
|
|
|
|
|
|
# src = /home/Computational/pmartin1/creams-simplified;
|
|
|
|
src = builtins.fetchGit {
|
|
|
|
url = "ssh://git@bscpm02.bsc.es/pmartin1/creams-simplified.git";
|
|
|
|
ref = "${gitBranch}";
|
|
|
|
};
|
|
|
|
|
2020-10-01 16:48:35 +02:00
|
|
|
phases = [ "unpackPhase" "patchPhase" "installPhase" ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
patchShebangs SodTubeBenchmark/gridScript.sh
|
|
|
|
'';
|
2020-09-30 17:32:49 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
pushd SodTubeBenchmark
|
2020-10-01 16:48:35 +02:00
|
|
|
./gridScript.sh 0 0 ${toString nprocz} ${toString granul}
|
2020-09-30 17:32:49 +02:00
|
|
|
popd
|
|
|
|
|
|
|
|
mkdir -p $out
|
|
|
|
cp -a SodTubeBenchmark $out/
|
|
|
|
'';
|
|
|
|
}
|