ocaml-ctypes: add initial version (0.4.1) to the system

This commit is contained in:
Eric Merritt 2015-05-15 09:31:44 -05:00
parent cd0836233a
commit fbba3c1c33
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{stdenv, buildOcaml, fetchurl, libffi, pkgconfig, ncurses}:
buildOcaml rec {
name = "ctypes";
version = "0.4.1";
src = fetchurl {
url = "https://github.com/ocamllabs/ocaml-ctypes/archive/${version}.tar.gz";
sha256 = "74564e049de5d3c0e76ea284c225cb658ac1a2b483345be1efb9be4b3c1702f5";
};
buildInputs = [ ncurses pkgconfig ];
propagatedBuildInputs = [ libffi ];
hasSharedObjects = true;
buildPhase = ''
make XEN=false libffi.config ctypes-base ctypes-stubs
make XEN=false ctypes-foreign
'';
installPhase = ''
make install XEN=false
'';
meta = with stdenv.lib; {
homepage = https://github.com/ocamllabs/ocaml-ctypes;
description = "Library for binding to C libraries using pure OCaml";
license = licenses.mit;
maintainers = [ maintainers.ericbmerritt ];
};
}

View File

@ -4134,6 +4134,8 @@ let
custom_printf = callPackage ../development/ocaml-modules/custom_printf { };
ctypes = callPackage ../development/ocaml-modules/ctypes { };
deriving = callPackage ../development/tools/ocaml/deriving { };
dolog = callPackage ../development/ocaml-modules/dolog { };