creams: use gitTable for all branches

This commit is contained in:
2021-04-19 13:17:24 +02:00
parent 53c098d921
commit 20e99f122f
4 changed files with 69 additions and 65 deletions

View File

@@ -2,30 +2,35 @@
stdenv
, granul ? 0
, nprocz ? 0
, gitBranch
, gitBranch ? "garlic/mpi+send+seq"
, gitCommit ? null
, garlicTools
}:
stdenv.mkDerivation rec {
name = "creams-input";
# src = /home/Computational/pmartin1/creams-simplified;
src = builtins.fetchGit {
url = "ssh://git@bscpm03.bsc.es/pmartin1/creams-simplified.git";
ref = "${gitBranch}";
let
gitSource = garlicTools.fetchGarlicApp {
appName = "creams";
inherit gitCommit gitBranch;
gitTable = import ./git-table.nix;
};
in
stdenv.mkDerivation rec {
name = "creams-input";
phases = [ "unpackPhase" "patchPhase" "installPhase" ];
inherit (gitSource) src gitBranch gitCommit;
patchPhase = ''
patchShebangs SodTubeBenchmark/gridScript.sh
'';
installPhase = ''
pushd SodTubeBenchmark
./gridScript.sh 0 0 ${toString nprocz} ${toString granul}
popd
phases = [ "unpackPhase" "patchPhase" "installPhase" ];
mkdir -p $out
cp -a SodTubeBenchmark $out/
'';
}
patchPhase = ''
patchShebangs SodTubeBenchmark/gridScript.sh
'';
installPhase = ''
pushd SodTubeBenchmark
./gridScript.sh 0 0 ${toString nprocz} ${toString granul}
popd
mkdir -p $out
cp -a SodTubeBenchmark $out/
'';
}