summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Roussel <anthony@roussel.dev>2022-09-04 23:11:46 +0200
committerAnthony Roussel <anthony@roussel.dev>2022-09-04 23:11:46 +0200
commit4e130db5087a257019e8f1bfe4fda181330fe75a (patch)
treea4e0fb1fa18058999d24063523a57cdb7b99d324
parentMerge pull request #186003 from r-ryantm/auto-update/precice (diff)
downloadnixpkgs-4e130db5087a257019e8f1bfe4fda181330fe75a.tar.gz
virt-top: 1.0.9 -> 1.1.1
-rw-r--r--pkgs/applications/virtualization/virt-top/default.nix33
1 files changed, 20 insertions, 13 deletions
diff --git a/pkgs/applications/virtualization/virt-top/default.nix b/pkgs/applications/virtualization/virt-top/default.nix
index 54c0bea35922..1c648b25ddb0 100644
--- a/pkgs/applications/virtualization/virt-top/default.nix
+++ b/pkgs/applications/virtualization/virt-top/default.nix
@@ -1,32 +1,39 @@
-{ lib, stdenv, fetchgit, fetchpatch, ocamlPackages, autoreconfHook }:
+{ lib, stdenv, fetchgit, ocamlPackages, autoreconfHook, libxml2, pkg-config, getopt }:
stdenv.mkDerivation rec {
pname = "virt-top";
- version = "1.0.9";
+ version = "1.1.1";
src = fetchgit {
url = "git://git.annexia.org/virt-top.git";
rev = "v${version}";
- sha256 = "0m7pm8lzlpngsj0vjv0hg8l9ck3gvwpva7r472f8f03xpjffwiga";
+ hash = "sha256-IKIkqzx7YWki0L6D5WbwQiVWJfDFGdI2nsGgg212CcE=";
};
- 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";
- })
+ nativeBuildInputs = [
+ autoreconfHook
+ pkg-config
+ getopt
];
- nativeBuildInputs = [ autoreconfHook ];
- buildInputs = with ocamlPackages; [ ocaml findlib ocaml_extlib ocaml_libvirt gettext-stub curses csv xml-light ];
+ buildInputs = with ocamlPackages; [
+ calendar
+ curses
+ findlib
+ gettext-stub
+ ocaml
+ ocaml_libvirt
+ ] ++ [ libxml2 ];
- buildPhase = "make opt";
+ 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 = "A top-like utility for showing stats of virtualized domains";
homepage = "https://people.redhat.com/~rjones/virt-top/";
- license = licenses.gpl2;
+ license = licenses.gpl2Only;
maintainers = [ ];
platforms = platforms.linux;
};