nixpkgs/pkgs/os-specific/linux/eventstat/default.nix

23 lines
635 B
Nix
Raw Normal View History

2016-07-14 18:06:39 +02:00
{ stdenv, lib, fetchzip, ncurses }:
2015-09-29 21:44:51 +02:00
stdenv.mkDerivation rec {
name = "eventstat-${version}";
2016-07-14 18:06:39 +02:00
version = "0.03.02";
2015-09-29 21:44:51 +02:00
src = fetchzip {
url = "http://kernel.ubuntu.com/~cking/tarballs/eventstat/eventstat-${version}.tar.gz";
2016-07-14 18:06:39 +02:00
sha256 = "1bwv0m9pk9l0jfibvsfjggc5pp9lyyrsfr10h6jm6kf1v6r6hf5s";
2015-09-29 21:44:51 +02:00
};
2016-07-14 18:06:39 +02:00
buildInputs = [ ncurses ];
2015-09-29 21:44:51 +02:00
installFlags = [ "DESTDIR=$(out)" ];
postInstall = ''
mv $out/usr/* $out
rm -r $out/usr
'';
meta = with lib; {
description = "Simple monitoring of system events";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ cstrahan ];
};
}