2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "numactl";
|
2020-10-16 20:44:37 +00:00
|
|
|
version = "2.0.14";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-10-16 20:44:37 +00:00
|
|
|
sha256 = "0hahpdp5xqy9cbg251bdxqkml341djn2h856g435h4ngz63sr9fs";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs test
|
|
|
|
'';
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
LDFLAGS = lib.optionalString stdenv.hostPlatform.isRiscV "-latomic";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# You probably shouldn't ever run these! They will reconfigure Linux
|
|
|
|
# NUMA settings, which on my build machine makes the rest of package
|
|
|
|
# building ~5% slower until reboot. Ugh!
|
|
|
|
doCheck = false; # never ever!
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Library and tools for non-uniform memory access (NUMA) machines";
|
|
|
|
homepage = "https://github.com/numactl/numactl";
|
|
|
|
license = with licenses; [ gpl2 lgpl21 ]; # libnuma is lgpl21
|
2021-03-19 17:17:44 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|