diff options
author | Domen Kožar <domen@dev.si> | 2015-12-15 18:52:13 +0100 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2015-12-15 23:41:43 +0100 |
commit | a2f8812096ac738e039104223d1d5b1eb9adb322 (patch) | |
tree | 5faff5ac13148325542e174a8ba0ccdf8cfd0121 /pkgs/os-specific/linux/numad | |
parent | e0d5bd4e55f693dfd27a3e394293727c7f297577 (diff) |
add numad: daemon that manages application locality
Diffstat (limited to 'pkgs/os-specific/linux/numad')
-rw-r--r-- | pkgs/os-specific/linux/numad/default.nix | 27 | ||||
-rw-r--r-- | pkgs/os-specific/linux/numad/numad-linker-flags.patch | 33 |
2 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/numad/default.nix b/pkgs/os-specific/linux/numad/default.nix new file mode 100644 index 0000000000000..2e88e2c794e76 --- /dev/null +++ b/pkgs/os-specific/linux/numad/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "numad-0.5"; + + src = fetchurl { + url = "https://git.fedorahosted.org/cgit/numad.git/snapshot/${name}.tar.xz"; + sha256 = "08zd1yc3w00yv4mvvz5sq1gf91f6p2s9ljcd72m33xgnkglj60v4"; + }; + + patches = [ + ./numad-linker-flags.patch + ]; + postPatch = '' + substituteInPlace Makefile --replace "install -m" "install -Dm" + ''; + + makeFlags = "prefix=$(out)"; + + meta = with stdenv.lib; { + description = "A user-level daemon that monitors NUMA topology and processes resource consumption to facilitate good NUMA resource access"; + homepage = https://fedoraproject.org/wiki/Features/numad; + license = licenses.lgpl21; + platforms = platforms.linux; + maintainers = with maintainers; [ iElectric ]; + }; +} diff --git a/pkgs/os-specific/linux/numad/numad-linker-flags.patch b/pkgs/os-specific/linux/numad/numad-linker-flags.patch new file mode 100644 index 0000000000000..97f3dc8b6cf7f --- /dev/null +++ b/pkgs/os-specific/linux/numad/numad-linker-flags.patch @@ -0,0 +1,33 @@ +From 9eb3cc5c51d846c8c8b750a4eb55545d7b5fea6c Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Wed, 23 Apr 2014 15:41:26 -0400 +Subject: [PATCH] use LDLIBS for linker flags + +When you put -lfoo into the dependency line of make, it forces it to +search /lib and /usr/lib for files to link against. This can cause +problems when trying to cross-compile or build for different ABIs. +Use the standard LDLIBS variable instead. + +URL: https://bugs.gentoo.org/505760 +Reported-by: Georgi Georgiev <chutzimir@gmail.com> +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + Makefile | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index f3838b4..f2e9a6e 100644 +--- a/Makefile ++++ b/Makefile +@@ -31,7 +31,8 @@ docdir := ${prefix}/share/doc + + all: numad + +-numad: numad.o -lpthread ++LDLIBS := -lpthread ++numad: numad.o + + AR ?= ar + RANLIB ?= ranlib +-- +1.9.2 |