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