fwi: add gitTable to params

This commit is contained in:
Rodrigo Arias 2021-04-20 18:51:36 +02:00
parent 9fc2a2025c
commit 5a49611bf6

View File

@ -3,18 +3,25 @@
, nz ? 200
, nx ? 200
, ny ? 500
, gitBranch ? "garlic/seq"
, gitCommit ? null
, garlicTools
}:
with stdenv.lib;
with builtins;
stdenv.mkDerivation rec {
let
gitSource = garlicTools.fetchGarlicApp {
appName = "fwi";
inherit gitCommit gitBranch;
gitTable = import ./git-table.nix;
};
in
stdenv.mkDerivation rec {
name = "fwi-params";
src = builtins.fetchGit {
url = "ssh://git@bscpm03.bsc.es/garlic/apps/fwi.git";
ref = "garlic/seq";
};
inherit (gitSource) src gitBranch gitCommit;
enableParallelBuilding = false;
@ -52,4 +59,4 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
cp ModelGenerator $out/bin/
'';
}
}