heat: pin commits using gitTable
This commit is contained in:
parent
2aa099f0e2
commit
375a79d27a
@ -3,33 +3,53 @@
|
||||
, mpi
|
||||
, tampi
|
||||
, mcxx
|
||||
, gitBranch ? "master"
|
||||
, gitBranch ? "garlic/mpi+send+seq"
|
||||
, gitCommit ? null
|
||||
, garlicTools
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "heat";
|
||||
|
||||
src = builtins.fetchGit {
|
||||
url = "ssh://git@bscpm03.bsc.es/garlic/apps/heat.git";
|
||||
ref = gitBranch;
|
||||
let
|
||||
gitTable = {
|
||||
# Auto-generated with garlic-git-table on 2021-03-31
|
||||
"garlic/mpi+send+oss+task" = "947c80070d4c53e441df54b8bfac8928b10c5fb2";
|
||||
"garlic/mpi+send+seq" = "f41e1433808d0cbecd88a869b451c927747e5d42";
|
||||
"garlic/tampi+isend+oss+task" = "b1273f9b4db32ba6e15e3d41343e67407ce2f54f";
|
||||
"garlic/tampi+send+oss+task" = "554bec249f9aa23dd92edcfa2ada1e03e05e121d";
|
||||
};
|
||||
|
||||
patches = [ ./print-times.patch ];
|
||||
# Find the actual commit
|
||||
_gitCommit = garlicTools.findCommit {
|
||||
inherit gitCommit gitTable gitBranch;
|
||||
};
|
||||
_gitBranch = gitBranch;
|
||||
|
||||
buildInputs = [
|
||||
mpi
|
||||
mcxx
|
||||
tampi
|
||||
];
|
||||
in
|
||||
|
||||
programPath = "/bin/${name}";
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp ${name} $out/bin/
|
||||
name = "heat";
|
||||
|
||||
mkdir -p $out/etc
|
||||
cp heat.conf $out/etc/
|
||||
'';
|
||||
src = builtins.fetchGit {
|
||||
url = "ssh://git@bscpm03.bsc.es/garlic/apps/heat.git";
|
||||
ref = _gitBranch;
|
||||
rev = _gitCommit;
|
||||
};
|
||||
|
||||
}
|
||||
gitBranch = _gitBranch;
|
||||
gitCommit = _gitCommit;
|
||||
|
||||
patches = [ ./print-times.patch ];
|
||||
|
||||
buildInputs = [ mpi mcxx tampi ];
|
||||
|
||||
programPath = "/bin/${name}";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp ${name} $out/bin/
|
||||
|
||||
mkdir -p $out/etc
|
||||
cp heat.conf $out/etc/
|
||||
'';
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user