1{ stdenv, lib, fetchurl }:
2
3stdenv.mkDerivation rec {
4 name = "forkstat-${version}";
5 version = "0.02.03";
6 src = fetchurl {
7 url = "http://kernel.ubuntu.com/~cking/tarballs/forkstat/forkstat-${version}.tar.gz";
8 sha256 = "1dl95ijs9bs9s9i629bi88qmvxjl25ym742gc063bysbp8drban1";
9 };
10 installFlags = [ "DESTDIR=$(out)" ];
11 postInstall = ''
12 mv $out/usr/* $out
13 rm -r $out/usr
14 '';
15 meta = with lib; {
16 description = "Process fork/exec/exit monitoring tool";
17 homepage = http://kernel.ubuntu.com/~cking/forkstat/;
18 license = licenses.gpl2;
19 platforms = platforms.linux;
20 maintainers = with maintainers; [ womfoo ];
21 };
22}