lol

Merge pull request #189774 from anthonyroussel/virt-top

virt-top: 1.0.9 -> 1.1.1

authored by

Christian Kögler and committed by
GitHub
fb6d1500 77f23a40

+20 -13
+20 -13
pkgs/applications/virtualization/virt-top/default.nix
··· 1 - { lib, stdenv, fetchgit, fetchpatch, ocamlPackages, autoreconfHook }: 1 + { lib, stdenv, fetchgit, ocamlPackages, autoreconfHook, libxml2, pkg-config, getopt }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "virt-top"; 5 - version = "1.0.9"; 5 + version = "1.1.1"; 6 6 7 7 src = fetchgit { 8 8 url = "git://git.annexia.org/virt-top.git"; 9 9 rev = "v${version}"; 10 - sha256 = "0m7pm8lzlpngsj0vjv0hg8l9ck3gvwpva7r472f8f03xpjffwiga"; 10 + hash = "sha256-IKIkqzx7YWki0L6D5WbwQiVWJfDFGdI2nsGgg212CcE="; 11 11 }; 12 12 13 - patches = [ 14 - (fetchpatch { 15 - name = "ocaml-libvirt-0.6.1.5-fix.patch"; 16 - url = "http://git.annexia.org/?p=virt-top.git;a=patch;h=24a461715d5bce47f63cb0097606fc336230589f"; 17 - sha256 = "15w7w9iggvlw8m9w8g4h08251wzb3m3zkb58glr7ifsgi3flbn61"; 18 - }) 13 + nativeBuildInputs = [ 14 + autoreconfHook 15 + pkg-config 16 + getopt 19 17 ]; 20 18 21 - nativeBuildInputs = [ autoreconfHook ]; 22 - buildInputs = with ocamlPackages; [ ocaml findlib ocaml_extlib ocaml_libvirt gettext-stub curses csv xml-light ]; 19 + buildInputs = with ocamlPackages; [ 20 + calendar 21 + curses 22 + findlib 23 + gettext-stub 24 + ocaml 25 + ocaml_libvirt 26 + ] ++ [ libxml2 ]; 23 27 24 - buildPhase = "make opt"; 28 + prePatch = '' 29 + substituteInPlace ocaml-dep.sh.in --replace '#!/bin/bash' '#!${stdenv.shell}' 30 + substituteInPlace ocaml-link.sh.in --replace '#!/bin/bash' '#!${stdenv.shell}' 31 + ''; 25 32 26 33 meta = with lib; { 27 34 description = "A top-like utility for showing stats of virtualized domains"; 28 35 homepage = "https://people.redhat.com/~rjones/virt-top/"; 29 - license = licenses.gpl2; 36 + license = licenses.gpl2Only; 30 37 maintainers = [ ]; 31 38 platforms = platforms.linux; 32 39 };