forked from rarias/bscpkgs
creams: use gitTable for all branches
This commit is contained in:
@@ -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/
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user