blob: 0ddf3cb5995c6df1836234ecbf77f57ee0a50fc2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{ stdenv, buildOcaml, fetchzip, libffi, pkgconfig, ncurses, integers }:
buildOcaml rec {
name = "ctypes";
version = "0.13.1";
minimumSupportedOcamlVersion = "4";
src = fetchzip {
url = "https://github.com/ocamllabs/ocaml-ctypes/archive/67e711ec891e087fbe1e0b4665aa525af4eaa409.tar.gz";
sha256 = "1z84s5znr3lj84rzv6m37xxj9h7fwx4qiiykx3djf52qgk1rb2xb";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ ncurses ];
propagatedBuildInputs = [ integers 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 ];
};
}
|