nixpkgs/pkgs/os-specific/linux/numatop/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, numactl, ncurses, check }:
2019-04-14 18:26:05 +01:00
stdenv.mkDerivation rec {
pname = "numatop";
version = "2.2";
src = fetchFromGitHub {
owner = "intel";
repo = "numatop";
rev = "v${version}";
sha256 = "sha256-GJvTwqgx34ZW10eIJj/xiKe3ZkAfs7GlJImz8jrnjfI=";
2019-04-14 18:26:05 +01:00
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
2019-04-14 18:26:05 +01:00
buildInputs = [ numactl ncurses ];
checkInputs = [ check ];
patches = [
(fetchpatch {
url = "https://github.com/intel/numatop/pull/54.patch";
sha256 = "sha256-TbMLv7TT9T8wE4uJ1a/AroyPPwrwL0eX5IBLsh9GTTM=";
name = "fix-string-operations.patch";
})
(fetchpatch {
url = "https://github.com/intel/numatop/pull/64.patch";
sha256 = "sha256-IevbSFJRTS5iQ5apHOVXzF67f3LJaW6j7DySFmVuyiM=";
name = "fix-format-strings-mvwprintw.patch";
})
];
2019-04-14 18:26:05 +01:00
doCheck = true;
meta = with lib; {
description = "Tool for runtime memory locality characterization and analysis of processes and threads on a NUMA system";
homepage = "https://01.org/numatop";
2019-04-14 18:26:05 +01:00
license = licenses.bsd3;
maintainers = with maintainers; [ dtzWill ];
2019-04-15 14:01:36 +01:00
platforms = [
"i686-linux" "x86_64-linux"
"powerpc64-linux" "powerpc64le-linux"
2019-04-15 14:01:36 +01:00
];
2019-04-14 18:26:05 +01:00
};
}