at 23.05-pre 33 lines 929 B view raw
1{ lib, stdenv, fetchFromGitHub, autoreconfHook }: 2 3stdenv.mkDerivation rec { 4 pname = "numactl"; 5 version = "2.0.16"; 6 7 src = fetchFromGitHub { 8 owner = pname; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-aDKzkmvrPDzQl4n0KgeiU5LOLhQA0tmwzGiXvJDp7ZI="; 12 }; 13 14 nativeBuildInputs = [ autoreconfHook ]; 15 16 postPatch = '' 17 patchShebangs test 18 ''; 19 20 LDFLAGS = lib.optionalString stdenv.hostPlatform.isRiscV "-latomic"; 21 22 # You probably shouldn't ever run these! They will reconfigure Linux 23 # NUMA settings, which on my build machine makes the rest of package 24 # building ~5% slower until reboot. Ugh! 25 doCheck = false; # never ever! 26 27 meta = with lib; { 28 description = "Library and tools for non-uniform memory access (NUMA) machines"; 29 homepage = "https://github.com/numactl/numactl"; 30 license = with licenses; [ gpl2 lgpl21 ]; # libnuma is lgpl21 31 platforms = platforms.linux; 32 }; 33}