1{
2 lib,
3 stdenv,
4 fetchurl,
5}:
6
7stdenv.mkDerivation (finalAttrs: {
8 version = "7.2.0";
9 pname = "papi";
10
11 src = fetchurl {
12 url = "http://icl.utk.edu/projects/papi/downloads/papi-${finalAttrs.version}.tar.gz";
13 sha256 = "sha256-qb/4nM85kV1yngiuCgxqcc4Ou+mEEemi6zyDyNsK85w=";
14 };
15
16 setSourceRoot = ''
17 sourceRoot=$(echo */src)
18 '';
19
20 doCheck = true;
21 checkTarget = "test";
22
23 meta = with lib; {
24 homepage = "https://icl.utk.edu/papi/";
25 description = "Library providing access to various hardware performance counters";
26 license = licenses.bsdOriginal;
27 platforms = platforms.linux;
28 maintainers = with maintainers; [
29 costrouc
30 zhaofengli
31 ];
32 };
33})