2022-09-22 12:36:57 +00:00
|
|
|
{ lib, stdenv, fetchgit, ocamlPackages, autoreconfHook, libxml2, pkg-config, getopt }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "virt-top";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "1.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.annexia.org/virt-top.git";
|
|
|
|
rev = "v${version}";
|
2022-09-22 12:36:57 +00:00
|
|
|
hash = "sha256-IKIkqzx7YWki0L6D5WbwQiVWJfDFGdI2nsGgg212CcE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
getopt
|
2023-02-09 11:40:11 +00:00
|
|
|
ocamlPackages.ocaml
|
|
|
|
ocamlPackages.findlib
|
2020-11-12 09:05:59 +00:00
|
|
|
];
|
2022-09-22 12:36:57 +00:00
|
|
|
buildInputs = with ocamlPackages; [
|
2023-02-09 11:40:11 +00:00
|
|
|
ocamlPackages.ocaml
|
2022-09-22 12:36:57 +00:00
|
|
|
calendar
|
|
|
|
curses
|
|
|
|
gettext-stub
|
|
|
|
ocaml_libvirt
|
|
|
|
] ++ [ libxml2 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace ocaml-dep.sh.in --replace '#!/bin/bash' '#!${stdenv.shell}'
|
|
|
|
substituteInPlace ocaml-link.sh.in --replace '#!/bin/bash' '#!${stdenv.shell}'
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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/";
|
2022-09-22 12:36:57 +00:00
|
|
|
license = licenses.gpl2Only;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "virt-top";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|