git.iko.soy/typeable/nixpkgs
on master help sign in
virt-top: init at 1.0.8 (#21536)
commit762cc106b489a0eba55a72a8fdd17d24054132d9 authorvolth <volth@webmaster.ms> dateSat 4 Feb 2017, 15:07 (10 years ago) parent913c5b2
6 files changed+127
pkgs/applications/virtualization/virt-top/default.nix+23 pkgs/development/ocaml-modules/curses/default.nix+31 pkgs/development/ocaml-modules/ocaml-gettext/default.nix+36 pkgs/development/ocaml-modules/ocaml-libvirt/default.nix+29 pkgs/top-level/all-packages.nix+2 pkgs/top-level/ocaml-packages.nix+6
pkgs/applications/virtualization/virt-top/default.nixnew file+23
@@ -0,0 +1,23 @@
1+{ stdenv, fetchurl, ocamlPackages }:
2+
3+stdenv.mkDerivation rec {
4+ name = "virt-top-${version}";
5+ version = "1.0.8";
6+
7+ src = fetchurl {
8+ url = "https://people.redhat.com/~rjones/virt-top/files/virt-top-${version}.tar.gz";
9+ sha256 = "04i1sf2d3ghilmzvr2vh74qcy009iifyc2ymj9kxnbkp97lrz13w";
10+ };
11+
12+ buildInputs = with ocamlPackages; [ ocaml findlib ocaml_extlib ocaml_libvirt ocaml_gettext curses csv xml-light ];
13+
14+ buildPhase = "make opt";
15+
16+ meta = with stdenv.lib; {
17+ description = "A top-like utility for showing stats of virtualized domains";
18+ homepage = https://people.redhat.com/~rjones/virt-top/;
19+ license = licenses.gpl2;
20+ maintainers = [ maintainers.volth ];
21+ platforms = platforms.linux;
22+ };
23+}
pkgs/development/ocaml-modules/curses/default.nixnew file+31
@@ -0,0 +1,31 @@
1+{ stdenv, fetchurl, ocaml, findlib, ncurses }:
2+
3+stdenv.mkDerivation rec {
4+ name = "ocaml-curses-${version}";
5+ version = "1.0.3";
6+
7+ src = fetchurl {
8+ url = "http://ocaml.phauna.org/distfiles/ocaml-curses-${version}.ogunden1.tar.gz";
9+ sha256 = "0fxya4blx4zcp9hy8gxxm2z7aas7hfvwnjdlj9pmh0s5gijpwsll";
10+ };
11+
12+ propagatedBuildInputs = [ ncurses ];
13+
14+ buildInputs = [ ocaml findlib ];
15+
16+ createFindlibDestdir = true;
17+
18+ postPatch = ''
19+ substituteInPlace curses.ml --replace "pp gcc" "pp $CC"
20+ '';
21+
22+ buildPhase = "make all opt";
23+
24+ meta = with stdenv.lib; {
25+ description = "OCaml Bindings to curses/ncurses";
26+ homepage = https://opam.ocaml.org/packages/curses/curses.1.0.3/;
27+ license = licenses.gpl2;
28+ maintainers = [ maintainers.volth ];
29+ platforms = ocaml.meta.platforms or [];
30+ };
31+}
pkgs/development/ocaml-modules/ocaml-gettext/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ stdenv, fetchurl, ocaml, findlib, camlp4, ounit, gettext, fileutils, camomile }:
2+
3+stdenv.mkDerivation rec {
4+ name = "ocaml-gettext-${version}";
5+ version = "0.3.5";
6+
7+ src = fetchurl {
8+ url = "https://forge.ocamlcore.org/frs/download.php/1433/ocaml-gettext-${version}.tar.gz";
9+ sha256 = "0s625h7y9xxqvzk4bnw45k4wvl4fn8gblv56bp47il0lgsx8956i";
10+ };
11+
12+ propagatedBuildInputs = [ gettext fileutils camomile ];
13+
14+ buildInputs = [ ocaml findlib camlp4 ounit ];
15+
16+ postPatch = stdenv.lib.optionalString (camlp4 != null) ''
17+ substituteInPlace test/test.ml --replace "+camlp4" "${camlp4}/lib/ocaml/${ocaml.version}/site-lib/camlp4"
18+ substituteInPlace ocaml-gettext/OCamlGettext.ml --replace "+camlp4" "${camlp4}/lib/ocaml/${ocaml.version}/site-lib/camlp4"
19+ substituteInPlace ocaml-gettext/Makefile --replace "+camlp4" "${camlp4}/lib/ocaml/${ocaml.version}/site-lib/camlp4"
20+ substituteInPlace ocaml-gettext/Makefile --replace "unix.cma" ""
21+ substituteInPlace libgettext-ocaml/Makefile --replace "+camlp4" "${camlp4}/lib/ocaml/${ocaml.version}/site-lib/camlp4"
22+ substituteInPlace libgettext-ocaml/Makefile --replace "\$(shell ocamlc -where)" "${camlp4}/lib/ocaml/${ocaml.version}/site-lib"
23+ '';
24+
25+ configureFlags = [ "--disable-doc" ];
26+
27+ createFindlibDestdir = true;
28+
29+ meta = with stdenv.lib; {
30+ description = "OCaml Bindings to gettext";
31+ homepage = https://forge.ocamlcore.org/projects/ocaml-gettext;
32+ license = licenses.gpl2;
33+ maintainers = [ maintainers.volth ];
34+ platforms = ocaml.meta.platforms or [];
35+ };
36+}
pkgs/development/ocaml-modules/ocaml-libvirt/default.nixnew file+29
@@ -0,0 +1,29 @@
1+{ stdenv, fetchurl, libvirt, ocaml, findlib }:
2+
3+stdenv.mkDerivation rec {
4+ name = "ocaml-libvirt-${version}";
5+ version = "0.6.1.4";
6+
7+ src = fetchurl {
8+ url = "http://libvirt.org/sources/ocaml/ocaml-libvirt-${version}.tar.gz";
9+ sha256 = "06q2y36ckb34n179bwczxkl82y3wrba65xb2acg8i04jpiyxadjd";
10+ };
11+
12+ propagatedBuildInputs = [ libvirt ];
13+
14+ buildInputs = [ ocaml findlib ];
15+
16+ createFindlibDestdir = true;
17+
18+ buildPhase = if stdenv.cc.isClang then "make all opt CPPFLAGS=-Wno-error" else "make all opt";
19+
20+ installPhase = "make install-opt";
21+
22+ meta = with stdenv.lib; {
23+ description = "OCaml bindings for libvirt";
24+ homepage = https://libvirt.org/ocaml/;
25+ license = licenses.gpl2;
26+ maintainers = [ maintainers.volth ];
27+ platforms = ocaml.meta.platforms or [];
28+ };
29+}
pkgs/top-level/all-packages.nix+2
@@ -15400,6 +15400,8 @@ with pkgs;
1540015400 spice_gtk = spice_gtk;
1540115401 };
1540215402
15403+ virt-top = callPackage ../applications/virtualization/virt-top { };
15404+
1540315405 virtmanager = callPackage ../applications/virtualization/virt-manager {
1540415406 vte = gnome3.vte;
1540515407 dconf = gnome3.dconf;
pkgs/top-level/ocaml-packages.nix+6
@@ -142,6 +142,8 @@ let
142142
143143 csv = callPackage ../development/ocaml-modules/csv { };
144144
145+ curses = callPackage ../development/ocaml-modules/curses { };
146+
145147 custom_printf = callPackage ../development/ocaml-modules/custom_printf { };
146148
147149 ctypes = callPackage ../development/ocaml-modules/ctypes { };
@@ -309,10 +311,14 @@ let
309311
310312 ocamlfuse = callPackage ../development/ocaml-modules/ocamlfuse { };
311313
314+ ocaml_gettext = callPackage ../development/ocaml-modules/ocaml-gettext { };
315+
312316 ocamlgraph = callPackage ../development/ocaml-modules/ocamlgraph { };
313317
314318 ocaml_http = callPackage ../development/ocaml-modules/http { };
315319
320+ ocaml_libvirt = callPackage ../development/ocaml-modules/ocaml-libvirt { };
321+
316322 ocamlify = callPackage ../development/tools/ocaml/ocamlify { };
317323
318324 ocaml_lwt = callPackage ../development/ocaml-modules/lwt { };