2018-01-31 01:00:53 +01:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook }:
|
2008-04-18 16:38:27 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-01-31 00:47:50 +01:00
|
|
|
name = "numactl-${version}";
|
|
|
|
version = "2.0.11";
|
2015-04-20 23:52:51 +02:00
|
|
|
|
2018-01-31 00:47:50 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "numactl";
|
|
|
|
repo = "numactl";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0bcffqawwbyrnza8np0whii25mfd0dria35zal9v3l55xcrya3j9";
|
2008-04-18 16:38:27 +02:00
|
|
|
};
|
|
|
|
|
2015-04-20 23:52:51 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2008-04-18 16:46:29 +02:00
|
|
|
|
2018-01-31 01:00:53 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://raw.githubusercontent.com/gentoo/gentoo/b64d15e731e3d6a7671f0ec6c34a20203cf2609d/sys-process/numactl/files/numactl-2.0.11-sysmacros.patch;
|
|
|
|
sha256 = "05277kv3x12n2xlh3fgnmxclxfc384mkwb0v9pd91046khj6h843";
|
|
|
|
})
|
|
|
|
] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl (fetchpatch {
|
|
|
|
url = https://git.alpinelinux.org/cgit/aports/plain/testing/numactl/musl.patch?id=0592b128c71c3e70d493bc7a13caed0d7fae91dd;
|
|
|
|
sha256 = "080b0sygmg7104qbbh1amh3b322yyiajwi2d3d0vayffgva0720v";
|
|
|
|
});
|
|
|
|
|
2015-04-20 23:52:51 +02:00
|
|
|
meta = with stdenv.lib; {
|
2008-04-18 16:38:27 +02:00
|
|
|
description = "Library and tools for non-uniform memory access (NUMA) machines";
|
|
|
|
homepage = http://oss.sgi.com/projects/libnuma/;
|
2015-04-20 23:52:51 +02:00
|
|
|
license = licenses.gpl2;
|
2017-11-22 18:38:16 +01:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
|
2015-04-20 23:52:51 +02:00
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2008-04-18 16:38:27 +02:00
|
|
|
};
|
|
|
|
}
|