531e4b80c9
Only acts on one-line dependency lists.
36 lines
884 B
Nix
36 lines
884 B
Nix
{stdenv, buildOcaml, fetchurl, libffi, pkgconfig, ncurses}:
|
|
|
|
buildOcaml rec {
|
|
name = "ctypes";
|
|
version = "0.11.5";
|
|
|
|
minimumSupportedOcamlVersion = "4";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ocamllabs/ocaml-ctypes/archive/${version}.tar.gz";
|
|
sha256 = "164gyrs6zxr5pyljwpjgd4knwlrkcmamsq3gvkkkvgf9rmhrl3zf";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ ncurses ];
|
|
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 ];
|
|
};
|
|
}
|