1{ lib, stdenv, fetchgit, unstableGitUpdater, writeShellScript }:
2
3stdenv.mkDerivation {
4 pname = "numad";
5 version = "0.5-unstable-2023-09-06";
6
7 src = fetchgit {
8 url = "https://pagure.io/numad.git";
9 rev = "3399d89305b6560e27e70aff4ad9fb403dedf947";
10 hash = "sha256-USEffVcakaAbilqijJmpro92ujvxbglcXxyBlntMxaI=";
11 };
12
13 postPatch = ''
14 substituteInPlace Makefile --replace "install -m" "install -Dm"
15 '';
16
17 makeFlags = [ "prefix=$(out)" ];
18
19 passthru.updateScript = unstableGitUpdater {
20 tagConverter = writeShellScript "tagConverter" ''
21 read tag
22 test "$tag" = "0" \
23 && tag=0.5; echo "$tag"
24 '';
25 };
26
27 meta = with lib; {
28 description = "User-level daemon that monitors NUMA topology and processes resource consumption to facilitate good NUMA resource access";
29 mainProgram = "numad";
30 homepage = "https://fedoraproject.org/wiki/Features/numad";
31 license = licenses.lgpl21;
32 platforms = platforms.linux;
33 maintainers = [ ];
34 };
35}