2024-07-14 10:33:38 +00:00
|
|
|
{ lib, stdenv, fetchgit, unstableGitUpdater, writeShellScript }:
|
2015-12-15 17:52:13 +00:00
|
|
|
|
2024-07-14 10:33:38 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-08-27 14:47:49 +00:00
|
|
|
pname = "numad";
|
2024-07-14 10:33:38 +00:00
|
|
|
version = "0.5-unstable-2023-09-06";
|
2015-12-15 17:52:13 +00:00
|
|
|
|
2021-10-15 03:11:42 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://pagure.io/numad.git";
|
2024-07-14 10:33:38 +00:00
|
|
|
rev = "3399d89305b6560e27e70aff4ad9fb403dedf947";
|
2024-07-14 10:59:26 +00:00
|
|
|
hash = "sha256-USEffVcakaAbilqijJmpro92ujvxbglcXxyBlntMxaI=";
|
2015-12-15 17:52:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile --replace "install -m" "install -Dm"
|
|
|
|
'';
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
2015-12-15 17:52:13 +00:00
|
|
|
|
2024-07-14 10:33:38 +00:00
|
|
|
passthru.updateScript = unstableGitUpdater {
|
|
|
|
tagConverter = writeShellScript "tagConverter" ''
|
|
|
|
read tag
|
|
|
|
test "$tag" = "0" \
|
|
|
|
&& tag=0.5; echo "$tag"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-12-15 17:52:13 +00:00
|
|
|
description = "User-level daemon that monitors NUMA topology and processes resource consumption to facilitate good NUMA resource access";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "numad";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://fedoraproject.org/wiki/Features/numad";
|
2015-12-15 17:52:13 +00:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.linux;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2015-12-15 17:52:13 +00:00
|
|
|
};
|
|
|
|
}
|