2018-03-13 20:33:05 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-07-02 08:19:44 +02:00
|
|
|
version = "201902";
|
2018-03-13 20:33:05 +01:00
|
|
|
name = "pcm-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "opcm";
|
|
|
|
repo = "pcm";
|
|
|
|
rev = "${version}";
|
2019-07-02 08:19:44 +02:00
|
|
|
sha256 = "15kh5ry2w1zj2mbg98hlayw8g53jy79q2ixj2wm48g8vagamv77z";
|
2018-03-13 20:33:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp pcm*.x $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Processor counter monitor";
|
|
|
|
homepage = https://www.intel.com/software/pcm;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ roosemberth ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|