2018-09-13 22:35:06 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
}:
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2018-09-13 22:35:06 +01:00
|
|
|
version = "5.6.0";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "papi";
|
2018-09-13 22:35:06 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://bitbucket.org/icl/papi/get/papi-5-6-0-t.tar.gz";
|
|
|
|
sha256 = "13mngf9kl0y2wfxqvkad0smdaag7k8fvw82b4312gx62nwhc1i6r";
|
|
|
|
};
|
|
|
|
|
2019-01-11 13:41:46 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-Wno-error=format-truncation" ];
|
2018-09-13 22:35:06 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd src
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://icl.utk.edu/papi/;
|
|
|
|
description = "PAPI provides the tool designer and application engineer with a consistent interface and methodology for use of the performance counter hardware found in most major microprocessors";
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|