nixpkgs/pkgs/applications/virtualization/virt-top/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
985 B
Nix
Raw Normal View History

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
stdenv.mkDerivation rec {
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 {
url = "git://git.annexia.org/virt-top.git";
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
];
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
meta = with lib; {
2017-02-04 15:07:45 +00:00
description = "A top-like utility for showing stats of virtualized domains";
homepage = "https://people.redhat.com/~rjones/virt-top/";
2022-09-04 21:11:46 +00:00
license = licenses.gpl2Only;
maintainers = [ ];
2017-02-04 15:07:45 +00:00
platforms = platforms.linux;
};
}