bsc: add ovni package

This commit is contained in:
Rodrigo Arias 2021-11-30 15:58:58 +01:00
parent 7d5e3f1845
commit 1ffca6c9e0
2 changed files with 35 additions and 0 deletions

30
bsc/ovni/default.nix Normal file
View File

@ -0,0 +1,30 @@
{
stdenv
, lib
, cmake
, mpi
, gitBranch ? "master"
, gitURL ? "ssh://git@gitlab-internal.bsc.es/nos-v/ovni.git"
, gitCommit ? "9c371d8c12ae4aed333bd7f90d0468603163ad6c"
# By default use debug
, enableDebug ? true
}:
with lib;
stdenv.mkDerivation rec {
pname = "ovni";
version = "${src.shortRev}";
buildInputs = [ cmake mpi ];
cmakeBuildType = if (enableDebug) then "Debug" else "Release";
dontStrip = true;
src = builtins.fetchGit ({
url = gitURL;
ref = gitBranch;
} // optionalAttrs (gitCommit != null) ({
rev = gitCommit;
}));
}

View File

@ -184,6 +184,11 @@ let
};
cn6 = callPackage ./bsc/cn6/default.nix { };
ovni = callPackage ./bsc/ovni/default.nix { };
ovniKernel = callPackage ./bsc/ovni/default.nix {
gitBranch = "kernel-context-switch";
gitCommit = null;
};
# =================================================================
# MN4 specific