parent
1bc07dc1dd
commit
0f2042888d
|
@ -1,20 +1,26 @@
|
||||||
{ stdenv, lib, fetchzip, ncurses }:
|
{ stdenv, lib, fetchFromGitHub, ncurses }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "eventstat";
|
pname = "eventstat";
|
||||||
version = "0.04.12";
|
version = "0.04.13";
|
||||||
src = fetchzip {
|
|
||||||
url = "https://kernel.ubuntu.com/~cking/tarballs/eventstat/eventstat-${version}.tar.gz";
|
src = fetchFromGitHub {
|
||||||
sha256 = "sha256-XBSs/jZodCpI9BHgAF8+bE23gRCr2uebYiMJxxB8T5E=";
|
owner = "ColinIanKing";
|
||||||
|
repo = pname;
|
||||||
|
rev = "V${version}";
|
||||||
|
hash = "sha256-psamt9omhakiO3Kx2EzofPL2VAsva7XKQTZmn6zKefA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ncurses ];
|
buildInputs = [ ncurses ];
|
||||||
installFlags = [ "DESTDIR=$(out)" ];
|
installFlags = [
|
||||||
postInstall = ''
|
"BINDIR=${placeholder "out"}/bin"
|
||||||
mv $out/usr/* $out
|
"MANDIR=${placeholder "out"}/share/man/man8"
|
||||||
rm -r $out/usr
|
"BASHDIR=${placeholder "out"}/share/bash-completion/completions"
|
||||||
'';
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Simple monitoring of system events";
|
description = "Simple monitoring of system events";
|
||||||
|
homepage = "https://github.com/ColinIanKing/eventstat";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ cstrahan ];
|
maintainers = with maintainers; [ cstrahan ];
|
||||||
|
|
Loading…
Reference in a new issue