Archived
1
0
forked from rarias/bscpkgs

Add new package NODES

This commit is contained in:
2023-03-13 16:16:34 +01:00
parent 9fae434553
commit 243ed2331a
3 changed files with 81 additions and 2 deletions

60
bsc/nodes/git.nix Normal file
View File

@@ -0,0 +1,60 @@
{
stdenv
, lib
, automake
, autoconf
, libtool
, pkg-config
, perl
, numactl
, hwloc
, papi
, boost
, autoreconfHook
, jemalloc
, enableOvni ? false
, ovni ? null
, nosv
, gitUrl ? "ssh://git@gitlab-internal.bsc.es/nos-v/nodes.git"
, gitBranch ? "master"
}:
with lib;
stdenv.mkDerivation rec {
pname = "nodes";
version = "${src.shortRev}";
src = builtins.fetchGit {
url = gitUrl;
ref = gitBranch;
};
enableParallelBuilding = true;
dontStrip = true;
configureFlags = [
"--with-jemalloc=${jemalloc}"
"--with-nosv=${nosv}"
] ++
(optional enableOvni "--with-ovni=${ovni}");
# The "bindnow" flags are incompatible with ifunc resolution mechanism. We
# disable all by default, which includes bindnow.
hardeningDisable = [ "all" ];
buildInputs = [
autoreconfHook
autoconf
automake
libtool
pkg-config
boost
numactl
hwloc
papi
jemalloc
nosv
] ++
(optional enableOvni ovni);
}