2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchgit, fetchpatch, ocamlPackages, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "virt-top";
|
|
|
|
version = "1.0.9";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.annexia.org/virt-top.git";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0m7pm8lzlpngsj0vjv0hg8l9ck3gvwpva7r472f8f03xpjffwiga";
|
|
|
|
};
|
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "ocaml-libvirt-0.6.1.5-fix.patch";
|
|
|
|
url = "http://git.annexia.org/?p=virt-top.git;a=patch;h=24a461715d5bce47f63cb0097606fc336230589f";
|
|
|
|
sha256 = "15w7w9iggvlw8m9w8g4h08251wzb3m3zkb58glr7ifsgi3flbn61";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = with ocamlPackages; [ ocaml findlib ocaml_extlib ocaml_libvirt gettext-stub curses csv xml-light ];
|
|
|
|
|
|
|
|
buildPhase = "make opt";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A top-like utility for showing stats of virtualized domains";
|
|
|
|
homepage = "https://people.redhat.com/~rjones/virt-top/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.volth ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|