2020-06-10 18:55:30 +02:00
|
|
|
{
|
|
|
|
stdenv
|
|
|
|
, automake
|
|
|
|
, autoconf
|
|
|
|
, libtool
|
|
|
|
, pkg-config
|
|
|
|
, numactl
|
|
|
|
, hwloc
|
|
|
|
, papi
|
|
|
|
, extrae
|
|
|
|
, boost
|
|
|
|
, autoreconfHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nanos6";
|
2020-07-15 12:21:48 +02:00
|
|
|
version = "2.4-${src.shortRev}";
|
2020-06-10 18:55:30 +02:00
|
|
|
branch = "master";
|
|
|
|
cacheline-width = "64";
|
|
|
|
|
|
|
|
src = builtins.fetchGit {
|
2020-07-15 12:21:48 +02:00
|
|
|
url = "ssh://git@bscpm02.bsc.es/nanos6/nanos6";
|
2020-06-10 18:55:30 +02:00
|
|
|
ref = branch;
|
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export CACHELINE_WIDTH=${cacheline-width}
|
2020-07-15 12:21:48 +02:00
|
|
|
export NANOS6_GIT_VERSION=${src.rev}
|
|
|
|
export NANOS6_GIT_BRANCH=${branch}
|
2020-06-10 18:55:30 +02:00
|
|
|
'';
|
|
|
|
|
2020-07-15 12:21:48 +02:00
|
|
|
# The "bindnow" flags are incompatible with ifunc resolution mechanism. We
|
|
|
|
# disable all by default, which includes bindnow.
|
|
|
|
hardeningDisable = [ "all" ];
|
2020-06-10 18:55:30 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
libtool
|
|
|
|
pkg-config
|
|
|
|
boost
|
|
|
|
numactl
|
|
|
|
hwloc
|
|
|
|
papi ]
|
|
|
|
++ (if (extrae != null) then [extrae] else []);
|
|
|
|
}
|