numactl: fix use of deprecated macros, patch to fix w/musl

+11 -1
+11 -1
pkgs/os-specific/linux/numactl/default.nix
··· 1 - { stdenv, fetchFromGitHub, autoreconfHook }: 1 + { stdenv, fetchFromGitHub, fetchpatch, autoreconfHook }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "numactl-${version}"; ··· 12 12 }; 13 13 14 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 + }); 15 25 16 26 meta = with stdenv.lib; { 17 27 description = "Library and tools for non-uniform memory access (NUMA) machines";