bsc: add nosv package

This commit is contained in:
Rodrigo Arias 2021-11-30 16:18:06 +01:00
parent bf28263cc5
commit 898534ee52
2 changed files with 45 additions and 0 deletions

40
bsc/nosv/default.nix Normal file
View File

@ -0,0 +1,40 @@
{
stdenv
, lib
, autoreconfHook
, pkgconfig
, numactl
, hwloc
, ovni ? null
, enableOvni ? false
, gitURL ? "git@gitlab-internal.bsc.es:nos-v/nos-v.git"
, gitBranch ? "master"
, gitCommit ? null
}:
with lib;
stdenv.mkDerivation rec {
pname = "nosv";
version = "${src.shortRev}";
inherit gitURL gitCommit gitBranch;
src = builtins.fetchGit ({
url = gitURL;
ref = gitBranch;
} // (optionalAttrs (gitCommit != null) { rev = gitCommit; })
);
hardeningDisable = [ "all" ];
dontStrip = true;
configureFlags = optional (enableOvni) "--with-ovni=${ovni}";
buildInputs = [
autoreconfHook
pkgconfig
numactl
hwloc
] ++ (optional (enableOvni) ovni);
}

View File

@ -159,6 +159,11 @@ let
hardeningDisable = [ "all" ];
});
# =================================================================
# nosv
# =================================================================
nosv = callPackage ./bsc/nosv/default.nix { };
# =================================================================
# MPI
# =================================================================