1{ cmake, fetchFromGitHub, lib, stdenv }:
2
3stdenv.mkDerivation rec {
4 pname = "pcm";
5 version = "202307";
6
7 src = fetchFromGitHub {
8 owner = "opcm";
9 repo = "pcm";
10 rev = version;
11 hash = "sha256-GeLiJT5AwsMWw0ErdwD6C1jtUZjUxGw5GRSvenu3W18=";
12 };
13
14 nativeBuildInputs = [ cmake ];
15 enableParallelBuilding = true;
16
17 meta = with lib; {
18 description = "Processor counter monitor";
19 homepage = "https://www.intel.com/software/pcm";
20 license = licenses.bsd3;
21 maintainers = with maintainers; [ roosemberth ];
22 platforms = [ "x86_64-linux" ];
23 };
24}