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