bscpkgs/bsc/nanos6/git.nix

57 lines
914 B
Nix
Raw Normal View History

2020-06-11 00:55:30 +08:00
{
stdenv
, automake
, autoconf
, libtool
, pkg-config
, numactl
, hwloc
, papi
, extrae
, boost
, autoreconfHook
}:
with stdenv.lib;
stdenv.mkDerivation rec {
pname = "nanos6";
2020-06-29 22:41:17 +08:00
version = "2.4+nix_526b0e14";
2020-06-11 00:55:30 +08:00
branch = "master";
cacheline-width = "64";
src = builtins.fetchGit {
2020-06-26 02:05:12 +08:00
url = "ssh://git@bscpm02.bsc.es/rarias/nanos6";
2020-06-29 22:41:17 +08:00
rev = "a8372abf9fc7cbc2db0778de80512ad4af244c29";
2020-06-11 00:55:30 +08:00
ref = branch;
};
enableParallelBuilding = true;
patchPhase = ''
export NANOS6_GIT_VERSION=${src.rev}
export NANOS6_GIT_BRANCH=${branch}
scripts/gen-version.sh
'';
preConfigure = ''
export CACHELINE_WIDTH=${cacheline-width}
'';
configureFlags = [
"--with-symbol-resolution=indirect"
];
buildInputs = [
autoreconfHook
autoconf
automake
libtool
pkg-config
boost
numactl
hwloc
papi ]
++ (if (extrae != null) then [extrae] else []);
}