at 18.03-beta 33 lines 1.2 kB view raw
1{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook }: 2 3stdenv.mkDerivation rec { 4 name = "numactl-${version}"; 5 version = "2.0.11"; 6 7 src = fetchFromGitHub { 8 owner = "numactl"; 9 repo = "numactl"; 10 rev = "v${version}"; 11 sha256 = "0bcffqawwbyrnza8np0whii25mfd0dria35zal9v3l55xcrya3j9"; 12 }; 13 14 nativeBuildInputs = [ autoreconfHook ]; 15 16 patches = [ 17 (fetchpatch { 18 url = https://raw.githubusercontent.com/gentoo/gentoo/b64d15e731e3d6a7671f0ec6c34a20203cf2609d/sys-process/numactl/files/numactl-2.0.11-sysmacros.patch; 19 sha256 = "05277kv3x12n2xlh3fgnmxclxfc384mkwb0v9pd91046khj6h843"; 20 }) 21 ] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl (fetchpatch { 22 url = https://git.alpinelinux.org/cgit/aports/plain/testing/numactl/musl.patch?id=0592b128c71c3e70d493bc7a13caed0d7fae91dd; 23 sha256 = "080b0sygmg7104qbbh1amh3b322yyiajwi2d3d0vayffgva0720v"; 24 }); 25 26 meta = with stdenv.lib; { 27 description = "Library and tools for non-uniform memory access (NUMA) machines"; 28 homepage = http://oss.sgi.com/projects/libnuma/; 29 license = licenses.gpl2; 30 platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ]; 31 maintainers = with maintainers; [ wkennington ]; 32 }; 33}