@@ -0,0 +1,30 @@
1+{ stdenv
2+, fetchurl
3+}:
4+
5+stdenv.mkDerivation rec {
6+ version = "5.6.0";
7+ name = "papi-${version}";
8+
9+ src = fetchurl {
10+ url = "https://bitbucket.org/icl/papi/get/papi-5-6-0-t.tar.gz";
11+ sha256 = "13mngf9kl0y2wfxqvkad0smdaag7k8fvw82b4312gx62nwhc1i6r";
12+ };
13+
14+ buildInputs = [ stdenv ];
15+
16+ preConfigure = ''
17+ cd src
18+ '';
19+
20+ doCheck = true;
21+ checkTarget = "test";
22+
23+ meta = with stdenv.lib; {
24+ homepage = https://icl.utk.edu/papi/;
25+ 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";
26+ license = licenses.bsdOriginal;
27+ platforms = platforms.linux;
28+ maintainers = [ maintainers.costrouc ];
29+ };
30+}