2022-09-04 21:11:46 +00:00
|
|
|
{ lib, stdenv, fetchgit, ocamlPackages, autoreconfHook, libxml2, pkg-config, getopt }:
|
2017-02-04 15:07:45 +00:00
|
|
|
|
2019-10-29 12:10:29 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "virt-top";
|
2022-09-04 21:11:46 +00:00
|
|
|
version = "1.1.1";
|
2017-02-04 15:07:45 +00:00
|
|
|
|
2018-02-26 22:50:46 +00:00
|
|
|
src = fetchgit {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "git://git.annexia.org/virt-top.git";
|
2019-10-29 12:10:29 +00:00
|
|
|
rev = "v${version}";
|
2022-09-04 21:11:46 +00:00
|
|
|
hash = "sha256-IKIkqzx7YWki0L6D5WbwQiVWJfDFGdI2nsGgg212CcE=";
|
2017-02-04 15:07:45 +00:00
|
|
|
};
|
|
|
|
|
2022-09-04 21:11:46 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
getopt
|
2020-11-02 20:58:09 +00:00
|
|
|
];
|
|
|
|
|
2022-09-04 21:11:46 +00:00
|
|
|
buildInputs = with ocamlPackages; [
|
|
|
|
calendar
|
|
|
|
curses
|
|
|
|
findlib
|
|
|
|
gettext-stub
|
|
|
|
ocaml
|
|
|
|
ocaml_libvirt
|
|
|
|
] ++ [ libxml2 ];
|
2017-02-04 15:07:45 +00:00
|
|
|
|
2022-09-04 21:11:46 +00:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace ocaml-dep.sh.in --replace '#!/bin/bash' '#!${stdenv.shell}'
|
|
|
|
substituteInPlace ocaml-link.sh.in --replace '#!/bin/bash' '#!${stdenv.shell}'
|
|
|
|
'';
|
2017-02-04 15:07:45 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-02-04 15:07:45 +00:00
|
|
|
description = "A top-like utility for showing stats of virtualized domains";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://people.redhat.com/~rjones/virt-top/";
|
2022-09-04 21:11:46 +00:00
|
|
|
license = licenses.gpl2Only;
|
2022-06-22 22:49:35 +00:00
|
|
|
maintainers = [ ];
|
2017-02-04 15:07:45 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|