virt-top: init at 1.0.8 (#21536)
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
{ stdenv, fetchurl, ocaml, findlib, camlp4, ounit, gettext, fileutils, camomile }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ocaml-gettext-${version}";
|
||||
version = "0.3.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://forge.ocamlcore.org/frs/download.php/1433/ocaml-gettext-${version}.tar.gz";
|
||||
sha256 = "0s625h7y9xxqvzk4bnw45k4wvl4fn8gblv56bp47il0lgsx8956i";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ gettext fileutils camomile ];
|
||||
|
||||
buildInputs = [ ocaml findlib camlp4 ounit ];
|
||||
|
||||
postPatch = stdenv.lib.optionalString (camlp4 != null) ''
|
||||
substituteInPlace test/test.ml --replace "+camlp4" "${camlp4}/lib/ocaml/${ocaml.version}/site-lib/camlp4"
|
||||
substituteInPlace ocaml-gettext/OCamlGettext.ml --replace "+camlp4" "${camlp4}/lib/ocaml/${ocaml.version}/site-lib/camlp4"
|
||||
substituteInPlace ocaml-gettext/Makefile --replace "+camlp4" "${camlp4}/lib/ocaml/${ocaml.version}/site-lib/camlp4"
|
||||
substituteInPlace ocaml-gettext/Makefile --replace "unix.cma" ""
|
||||
substituteInPlace libgettext-ocaml/Makefile --replace "+camlp4" "${camlp4}/lib/ocaml/${ocaml.version}/site-lib/camlp4"
|
||||
substituteInPlace libgettext-ocaml/Makefile --replace "\$(shell ocamlc -where)" "${camlp4}/lib/ocaml/${ocaml.version}/site-lib"
|
||||
'';
|
||||
|
||||
configureFlags = [ "--disable-doc" ];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "OCaml Bindings to gettext";
|
||||
homepage = https://forge.ocamlcore.org/projects/ocaml-gettext;
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ maintainers.volth ];
|
||||
platforms = ocaml.meta.platforms or [];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user