at 24.11-pre 28 lines 681 B view raw
1{ lib, stdenv 2, fetchurl 3}: 4 5stdenv.mkDerivation rec { 6 version = "7.0.1"; 7 pname = "papi"; 8 9 src = fetchurl { 10 url = "https://bitbucket.org/icl/papi/get/papi-${lib.replaceStrings ["."] ["-"] version}-t.tar.gz"; 11 sha256 = "sha256-VajhmPW8sEJksfhLjBVlpBH7+AZr4fwKZPAtZxRF1Bk="; 12 }; 13 14 setSourceRoot = '' 15 sourceRoot=$(echo */src) 16 ''; 17 18 doCheck = true; 19 checkTarget = "test"; 20 21 meta = with lib; { 22 homepage = "https://icl.utk.edu/papi/"; 23 description = "Library providing access to various hardware performance counters"; 24 license = licenses.bsdOriginal; 25 platforms = platforms.linux; 26 maintainers = with maintainers; [ costrouc zhaofengli ]; 27 }; 28}