python312Packages.vdf: avoid using pname for src.repo
[NixPkgs.git] / pkgs / os-specific / linux / forkstat / default.nix
blob8454987343b0fde065def5bccfcde58b624cd56d
1 { stdenv, lib, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4   pname = "forkstat";
5   version = "0.03.02";
7   src = fetchFromGitHub {
8     owner = "ColinIanKing";
9     repo = pname;
10     rev = "V${version}";
11     hash = "sha256-lwJIs5knNzkwgIkSdMSVVtrzqnxGy6uOTKsBDkS3xy4=";
12   };
14   installFlags = [
15     "BINDIR=${placeholder "out"}/bin"
16     "MANDIR=${placeholder "out"}/share/man/man8"
17     "BASHDIR=${placeholder "out"}/share/bash-completion/completions"
18   ];
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.gpl2Plus;
25     platforms = platforms.linux;
26     maintainers = with maintainers; [ womfoo ];
27   };