1{ stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 name = "numad-0.5";
5
6 src = fetchurl {
7 url = "https://git.fedorahosted.org/cgit/numad.git/snapshot/${name}.tar.xz";
8 sha256 = "08zd1yc3w00yv4mvvz5sq1gf91f6p2s9ljcd72m33xgnkglj60v4";
9 };
10
11 hardeningDisable = [ "format" ];
12
13 patches = [
14 ./numad-linker-flags.patch
15 ];
16 postPatch = ''
17 substituteInPlace Makefile --replace "install -m" "install -Dm"
18 '';
19
20 makeFlags = "prefix=$(out)";
21
22 meta = with stdenv.lib; {
23 description = "A user-level daemon that monitors NUMA topology and processes resource consumption to facilitate good NUMA resource access";
24 homepage = https://fedoraproject.org/wiki/Features/numad;
25 license = licenses.lgpl21;
26 platforms = platforms.linux;
27 maintainers = with maintainers; [ domenkozar ];
28 };
29}