@@ -2,19 +2,17 @@
22, fetchurl
33}:
44
5−stdenv.mkDerivation {
6− version = "5.6.0";
5+stdenv.mkDerivation rec {
6+ version = "6.0.0.1";
77 pname = "papi";
88
99 src = fetchurl {
10− url = "https://bitbucket.org/icl/papi/get/papi-5-6-0-t.tar.gz";
11− sha256 = "13mngf9kl0y2wfxqvkad0smdaag7k8fvw82b4312gx62nwhc1i6r";
10+ url = "https://bitbucket.org/icl/papi/get/papi-${lib.replaceStrings ["."] ["-"] version}-t.tar.gz";
11+ sha256 = "1jd67yadyffzxwsqlylsi0bx8ishb0cgj2ziz1wdslaz6ylvyf9j";
1212 };
1313
14− NIX_CFLAGS_COMPILE = "-Wno-error=format-truncation";
15−
16− preConfigure = ''
17− cd src
14+ setSourceRoot = ''
15+ sourceRoot=$(echo */src)
1816 '';
1917
2018 doCheck = true;
@@ -22,9 +20,9 @@ stdenv.mkDerivation {
2220
2321 meta = with lib; {
2422 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";
23+ description = "Library providing access to various hardware performance counters";
2624 license = licenses.bsdOriginal;
2725 platforms = platforms.linux;
28− maintainers = [ maintainers.costrouc ];
26+ maintainers = with maintainers; [ costrouc zhaofengli ];
2927 };
3028}