2020-06-08 18:01:33 +02:00
|
|
|
{
|
|
|
|
stdenv
|
|
|
|
, fetchurl
|
|
|
|
, automake
|
|
|
|
, autoconf
|
|
|
|
, libtool
|
|
|
|
, pkg-config
|
|
|
|
, numactl
|
|
|
|
, hwloc
|
|
|
|
, papi
|
|
|
|
#, gnumake
|
2020-06-09 18:21:02 +02:00
|
|
|
, extrae
|
2020-06-08 18:01:33 +02:00
|
|
|
, boost
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nanos6";
|
2020-06-29 16:53:57 +02:00
|
|
|
version = "2.4";
|
2020-06-08 18:01:33 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-06-29 16:53:57 +02:00
|
|
|
url = "https://pm.bsc.es/ftp/ompss-2/releases/ompss-2-2020.06.tar.gz";
|
|
|
|
sha256 = "0f9hy2avblv31wi4910x81wc47dwx8x9nd72y02lgrhl7fc9i2sf";
|
2020-06-08 18:01:33 +02:00
|
|
|
};
|
|
|
|
|
2020-06-29 16:53:57 +02:00
|
|
|
enableParallelBuilding = false;
|
2020-06-08 18:01:33 +02:00
|
|
|
preConfigure = ''
|
|
|
|
cd ${pname}-${version}
|
|
|
|
sed -i 's|/bin/echo|echo|g' loader/scripts/common.sh loader/scripts/lint/common.sh
|
|
|
|
'';
|
|
|
|
|
2020-06-15 11:54:22 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--with-symbol-resolution=indirect"
|
|
|
|
];
|
|
|
|
|
2020-06-08 18:01:33 +02:00
|
|
|
#configureFlags = []
|
|
|
|
# ++ (if (extrae != null) then ["--with-extrae=${extrae}"] else [""]);
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
libtool
|
|
|
|
pkg-config
|
|
|
|
boost
|
|
|
|
numactl
|
|
|
|
hwloc
|
|
|
|
papi ]
|
2020-06-09 18:21:02 +02:00
|
|
|
++ (if (extrae != null) then [extrae] else []);
|
2020-06-08 18:01:33 +02:00
|
|
|
|
|
|
|
}
|