1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5}:
6
7stdenv.mkDerivation rec {
8 pname = "forkstat";
9 version = "0.04.00";
10
11 src = fetchFromGitHub {
12 owner = "ColinIanKing";
13 repo = "forkstat";
14 rev = "V${version}";
15 hash = "sha256-HHyGjhu8yaBvDncloW8ST2L4iUU2ik2ydW1z9pFhfrw=";
16 };
17
18 installFlags = [
19 "BINDIR=${placeholder "out"}/bin"
20 "MANDIR=${placeholder "out"}/share/man/man8"
21 "BASHDIR=${placeholder "out"}/share/bash-completion/completions"
22 ];
23
24 meta = with lib; {
25 description = "Process fork/exec/exit monitoring tool";
26 mainProgram = "forkstat";
27 homepage = "https://github.com/ColinIanKing/forkstat";
28 license = licenses.gpl2Plus;
29 platforms = platforms.linux;
30 maintainers = with maintainers; [ womfoo ];
31 };
32}