about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/sl/slurm-nm/package.nix
blob: 5e9fa47127fc1e917a5fa6ef690709f1b0f569fa (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
{ stdenv
, lib
, fetchFromGitHub
, pkg-config
, meson
, ncurses
, ninja
}:

stdenv.mkDerivation rec {
  pname = "slurm-nm";
  version = "0.4.4";

  src = fetchFromGitHub {
    owner = "mattthias";
    repo = "slurm";
    rev = "upstream/${version}";
    hash = "sha256-w77SIXFctMwwNw9cQm0HQaEaMs/5NXQjn1LpvkpCCB8=";
  };

  nativeBuildInputs = [ pkg-config meson ninja ];
  buildInputs = [ ncurses ];

  meta = with lib; {
    description = "A generic network load monitor";
    homepage = "https://github.com/mattthias/slurm";
    license = licenses.gpl2Plus;
    platforms = [ "x86_64-linux" ];
    maintainers = with maintainers; [ mikaelfangel ];
    mainProgram = "slurm";
  };
}