From 99f33266092e6d73dbac2332c1c81f218227ca2a Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 23 Feb 2021 11:51:07 +0100 Subject: [PATCH] saiph: allow custom gitCommit --- garlic/apps/saiph/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/garlic/apps/saiph/default.nix b/garlic/apps/saiph/default.nix index 616350e..f9e315f 100644 --- a/garlic/apps/saiph/default.nix +++ b/garlic/apps/saiph/default.nix @@ -7,6 +7,7 @@ , vtk , boost , gitBranch ? "master" +, gitCommit ? null , numComm ? null , nbx ? null , nby ? null @@ -20,10 +21,13 @@ with stdenv.lib; stdenv.mkDerivation rec { name = "saiph"; - src = builtins.fetchGit { + inherit gitBranch gitCommit; + src = builtins.fetchGit ({ url = "ssh://git@bscpm03.bsc.es/DSLs/saiph.git"; ref = "${gitBranch}"; - }; + } // (if (gitCommit != null) then { + rev = gitCommit; + } else {})); programPath = "/bin/Heat3D_vect";