depot/third_party/nixpkgs/pkgs/applications/virtualization/virt-top/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

43 lines
1.1 KiB
Nix

{ lib, stdenv, fetchgit, ocamlPackages, autoreconfHook, libxml2, pkg-config, getopt }:
stdenv.mkDerivation rec {
pname = "virt-top";
version = "1.1.1";
src = fetchgit {
url = "git://git.annexia.org/virt-top.git";
rev = "v${version}";
hash = "sha256-IKIkqzx7YWki0L6D5WbwQiVWJfDFGdI2nsGgg212CcE=";
};
strictDeps = true;
nativeBuildInputs = [
autoreconfHook
pkg-config
getopt
ocamlPackages.ocaml
ocamlPackages.findlib
];
buildInputs = with ocamlPackages; [
ocamlPackages.ocaml
calendar
curses
gettext-stub
ocaml_libvirt
] ++ [ libxml2 ];
prePatch = ''
substituteInPlace ocaml-dep.sh.in --replace '#!/bin/bash' '#!${stdenv.shell}'
substituteInPlace ocaml-link.sh.in --replace '#!/bin/bash' '#!${stdenv.shell}'
'';
meta = with lib; {
description = "Top-like utility for showing stats of virtualized domains";
homepage = "https://people.redhat.com/~rjones/virt-top/";
license = licenses.gpl2Only;
maintainers = [ ];
platforms = platforms.linux;
mainProgram = "virt-top";
};
}