2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchgit, fetchpatch, ocamlPackages, autoreconfHook }:
|
2017-02-04 16:07:45 +01:00
|
|
|
|
2019-10-29 13:10:29 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "virt-top";
|
2019-10-29 13:10:29 +01:00
|
|
|
version = "1.0.9";
|
2017-02-04 16:07:45 +01:00
|
|
|
|
2018-02-26 23:50:46 +01:00
|
|
|
src = fetchgit {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "git://git.annexia.org/virt-top.git";
|
2019-10-29 13:10:29 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0m7pm8lzlpngsj0vjv0hg8l9ck3gvwpva7r472f8f03xpjffwiga";
|
2017-02-04 16:07:45 +01:00
|
|
|
};
|
|
|
|
|
2020-11-02 21:58:09 +01: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";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-02-26 23:50:46 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2020-04-06 13:44:48 +02:00
|
|
|
buildInputs = with ocamlPackages; [ ocaml findlib ocaml_extlib ocaml_libvirt gettext-stub curses csv xml-light ];
|
2017-02-04 16:07:45 +01:00
|
|
|
|
|
|
|
buildPhase = "make opt";
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-02-04 16:07:45 +01:00
|
|
|
description = "A top-like utility for showing stats of virtualized domains";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://people.redhat.com/~rjones/virt-top/";
|
2017-02-04 16:07:45 +01:00
|
|
|
license = licenses.gpl2;
|
2022-06-23 00:49:35 +02:00
|
|
|
maintainers = [ ];
|
2017-02-04 16:07:45 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|