summary refs log tree commit diff
path: root/pkgs/os-specific/linux/numatop/default.nix
blob: 57ee511bbadcf6893e339f1dacfaf4d23d097424 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchurl, pkgconfig, numactl, ncurses, check }:

stdenv.mkDerivation rec {
  pname = "numatop";
  version = "2.1";
  src = fetchurl {
    url = "https://github.com/intel/${pname}/releases/download/v${version}/${pname}-v${version}.tar.xz";
    sha256 = "1s7psq1xyswj0lpx10zg5lnppav2xy9safkfx3rssrs9c2fp5d76";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ numactl ncurses ];
  checkInputs = [ check ];

  doCheck  = true;

  meta = with stdenv.lib; {
    description = "Tool for runtime memory locality characterization and analysis of processes and threads on a NUMA system";
    homepage = "https://01.org/numatop";
    license = licenses.bsd3;
    maintainers = with maintainers; [ dtzWill ];
    platforms = [
      { kernel.name = "linux"; cpu.family = "x86"; }
      { kernel.name = "linux"; cpu.family = "power"; }
    ];
  };
}