about summary refs log tree commit diff
path: root/nixpkgs/pkgs/os-specific/linux/numad/default.nix
blob: 2eabbc95fa13b9b5c100a359ddeea0d45b05c76a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, stdenv, fetchgit }:

stdenv.mkDerivation rec {
  pname = "numad";
  version = "0.5";

  src = fetchgit {
    url = "https://pagure.io/numad.git";
    rev = "334278ff3d774d105939743436d7378a189e8693";
    sha256 = "sha256-6nrbfooUI1ufJhsPf68li5584oKQcznXQlxfpStuX5I=";
  };

  hardeningDisable = [ "format" ];

  patches = [
    ./numad-linker-flags.patch
  ];
  postPatch = ''
    substituteInPlace Makefile --replace "install -m" "install -Dm"
  '';

  makeFlags = [ "prefix=$(out)" ];

  meta = with lib; {
    description = "A user-level daemon that monitors NUMA topology and processes resource consumption to facilitate good NUMA resource access";
    mainProgram = "numad";
    homepage = "https://fedoraproject.org/wiki/Features/numad";
    license = licenses.lgpl21;
    platforms = platforms.linux;
    maintainers = with maintainers; [ ];
  };
}