1{ stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 version = "4.9.0";
5 name = "libpfm-${version}";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/perfmon2/libpfm4/${name}.tar.gz";
9 sha256 = "1qp4g4n6dw42p2w5rkwzdb7ynk8h7g5vg01ybpmvxncgwa7bw3yv";
10 };
11
12 installFlags = "DESTDIR=\${out} PREFIX= LDCONFIG=true";
13
14 meta = with stdenv.lib; {
15 description = "Helper library to program the performance monitoring events";
16 longDescription = ''
17 This package provides a library, called libpfm4 which is used to
18 develop monitoring tools exploiting the performance monitoring
19 events such as those provided by the Performance Monitoring Unit
20 (PMU) of modern processors.
21 '';
22 license = licenses.gpl2;
23 maintainers = [ maintainers.pierron ];
24 platforms = platforms.all;
25 };
26}