1{ lib, stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 pname = "pcm";
5 version = "202112";
6
7 src = fetchFromGitHub {
8 owner = "opcm";
9 repo = "pcm";
10 rev = version;
11 sha256 = "sha256-uuQvj8BcUmuYDwV4r3oqkT+QTcSFcGjBeGUM2NZRFcA=";
12 };
13
14 enableParallelBuilding = true;
15
16 installPhase = ''
17 mkdir -p $out/bin
18 cp pcm*.x $out/bin
19 '';
20
21 meta = with lib; {
22 description = "Processor counter monitor";
23 homepage = "https://www.intel.com/software/pcm";
24 license = licenses.bsd3;
25 maintainers = with maintainers; [ roosemberth ];
26 platforms = [ "x86_64-linux" ];
27 };
28}