heat: pin commits using gitTable
This commit is contained in:
parent
2aa099f0e2
commit
375a79d27a
@ -3,24 +3,44 @@
|
||||
, mpi
|
||||
, tampi
|
||||
, mcxx
|
||||
, gitBranch ? "master"
|
||||
, gitBranch ? "garlic/mpi+send+seq"
|
||||
, gitCommit ? null
|
||||
, garlicTools
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
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";
|
||||
};
|
||||
|
||||
# Find the actual commit
|
||||
_gitCommit = garlicTools.findCommit {
|
||||
inherit gitCommit gitTable gitBranch;
|
||||
};
|
||||
_gitBranch = gitBranch;
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "heat";
|
||||
|
||||
src = builtins.fetchGit {
|
||||
url = "ssh://git@bscpm03.bsc.es/garlic/apps/heat.git";
|
||||
ref = gitBranch;
|
||||
ref = _gitBranch;
|
||||
rev = _gitCommit;
|
||||
};
|
||||
|
||||
gitBranch = _gitBranch;
|
||||
gitCommit = _gitCommit;
|
||||
|
||||
patches = [ ./print-times.patch ];
|
||||
|
||||
buildInputs = [
|
||||
mpi
|
||||
mcxx
|
||||
tampi
|
||||
];
|
||||
buildInputs = [ mpi mcxx tampi ];
|
||||
|
||||
programPath = "/bin/${name}";
|
||||
|
||||
@ -32,4 +52,4 @@ stdenv.mkDerivation rec {
|
||||
cp heat.conf $out/etc/
|
||||
'';
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user