34 lines
699 B
Nix
34 lines
699 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
version = "7.2.0";
|
|
pname = "papi";
|
|
|
|
src = fetchurl {
|
|
url = "http://icl.utk.edu/projects/papi/downloads/papi-${finalAttrs.version}.tar.gz";
|
|
sha256 = "sha256-qb/4nM85kV1yngiuCgxqcc4Ou+mEEemi6zyDyNsK85w=";
|
|
};
|
|
|
|
setSourceRoot = ''
|
|
sourceRoot=$(echo */src)
|
|
'';
|
|
|
|
doCheck = true;
|
|
checkTarget = "test";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://icl.utk.edu/papi/";
|
|
description = "Library providing access to various hardware performance counters";
|
|
license = licenses.bsdOriginal;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [
|
|
costrouc
|
|
zhaofengli
|
|
];
|
|
};
|
|
})
|