nixpkgs/pkgs/development/libraries/libpfm/default.nix

34 lines
975 B
Nix
Raw Normal View History

2014-05-26 01:25:28 +02:00
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
2018-06-26 09:02:31 +02:00
version = "4.10.1";
2014-05-26 01:25:28 +02:00
name = "libpfm-${version}";
src = fetchurl {
url = "mirror://sourceforge/perfmon2/libpfm4/${name}.tar.gz";
2018-06-26 09:02:31 +02:00
sha256 = "0jabhjx77yppr7x38bkfww6n2a480gj62rw0qp7prhdmg19mf766";
2014-05-26 01:25:28 +02:00
};
2018-11-20 22:44:23 +01:00
makeFlags = [
2018-12-13 19:58:01 +01:00
"PREFIX=${placeholder "out"}"
"LDCONFIG=true"
"ARCH=${stdenv.hostPlatform.uname.processor}"
"SYS=${stdenv.hostPlatform.uname.system}"
2018-11-20 22:44:23 +01:00
];
2018-09-24 17:42:57 +02:00
NIX_CFLAGS_COMPILE = [ "-Wno-error" ];
2015-05-30 15:14:10 +02:00
meta = with stdenv.lib; {
2014-05-26 01:25:28 +02:00
description = "Helper library to program the performance monitoring events";
longDescription = ''
This package provides a library, called libpfm4 which is used to
develop monitoring tools exploiting the performance monitoring
events such as those provided by the Performance Monitoring Unit
(PMU) of modern processors.
'';
2015-05-30 15:14:10 +02:00
license = licenses.gpl2;
maintainers = [ maintainers.pierron ];
2018-06-19 18:55:23 +02:00
platforms = platforms.linux;
2014-05-26 01:25:28 +02:00
};
2015-05-30 15:14:10 +02:00
}