1{ stdenv, lib, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 pname = "forkstat";
5 version = "0.03.02";
6
7 src = fetchFromGitHub {
8 owner = "ColinIanKing";
9 repo = pname;
10 rev = "V${version}";
11 hash = "sha256-lwJIs5knNzkwgIkSdMSVVtrzqnxGy6uOTKsBDkS3xy4=";
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 mainProgram = "forkstat";
23 homepage = "https://github.com/ColinIanKing/forkstat";
24 license = licenses.gpl2;
25 platforms = platforms.linux;
26 maintainers = with maintainers; [ womfoo ];
27 };
28}