2022-01-31 18:53:54 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, numactl, ncurses, check }:
|
2019-04-14 17:26:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "numatop";
|
2022-01-31 18:53:54 +00:00
|
|
|
version = "2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "intel";
|
|
|
|
repo = "numatop";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-GJvTwqgx34ZW10eIJj/xiKe3ZkAfs7GlJImz8jrnjfI=";
|
2019-04-14 17:26:05 +00:00
|
|
|
};
|
|
|
|
|
2022-01-31 18:53:54 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2019-04-14 17:26:05 +00:00
|
|
|
buildInputs = [ numactl ncurses ];
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ check ];
|
2019-04-14 17:26:05 +00:00
|
|
|
|
2022-01-31 18:53:54 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
2023-10-01 16:16:25 +00:00
|
|
|
# https://github.com/intel/numatop/pull/54
|
|
|
|
url = "https://github.com/intel/numatop/compare/eab0ac5253c5843aa0f0ac36e2eec7612207711b...c1001fd926c24eae2d40729492e07270ce133b72.patch";
|
2022-01-31 18:53:54 +00:00
|
|
|
sha256 = "sha256-TbMLv7TT9T8wE4uJ1a/AroyPPwrwL0eX5IBLsh9GTTM=";
|
|
|
|
name = "fix-string-operations.patch";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
2023-10-01 16:16:25 +00:00
|
|
|
# https://github.com/intel/numatop/pull/64
|
|
|
|
url = "https://github.com/intel/numatop/commit/635e2ce2ccb1ac793cc276a7fcb8a92b1ffefa5d.patch";
|
2022-01-31 18:53:54 +00:00
|
|
|
sha256 = "sha256-IevbSFJRTS5iQ5apHOVXzF67f3LJaW6j7DySFmVuyiM=";
|
|
|
|
name = "fix-format-strings-mvwprintw.patch";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-04-14 17:26:05 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-04-14 21:04:40 +00:00
|
|
|
description = "Tool for runtime memory locality characterization and analysis of processes and threads on a NUMA system";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://01.org/numatop";
|
2019-04-14 17:26:05 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
2019-04-15 13:01:36 +00:00
|
|
|
platforms = [
|
2022-01-31 18:36:42 +00:00
|
|
|
"i686-linux" "x86_64-linux"
|
|
|
|
"powerpc64-linux" "powerpc64le-linux"
|
2019-04-15 13:01:36 +00:00
|
|
|
];
|
2019-04-14 17:26:05 +00:00
|
|
|
};
|
|
|
|
}
|