mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
34 lines
1.0 KiB
Nix
34 lines
1.0 KiB
Nix
{ lib, stdenv, fetchgit, fetchpatch, ocamlPackages, autoreconfHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "virt-top";
|
|
version = "1.0.9";
|
|
|
|
src = fetchgit {
|
|
url = "git://git.annexia.org/virt-top.git";
|
|
rev = "v${version}";
|
|
sha256 = "0m7pm8lzlpngsj0vjv0hg8l9ck3gvwpva7r472f8f03xpjffwiga";
|
|
};
|
|
|
|
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 ];
|
|
buildInputs = with ocamlPackages; [ ocaml findlib ocaml_extlib ocaml_libvirt gettext-stub curses csv xml-light ];
|
|
|
|
buildPhase = "make opt";
|
|
|
|
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;
|
|
maintainers = [ maintainers.volth ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|