Include directory for OCaml's C headers.

Make an include directory and symlinks ocaml's C header files into
that directory.  By having an include directory it is automatically
propogated as to NIX_CFLAGS_COMPILE for anyone who uses ocaml as a
build input.

(Proposed on the mailing list by Russell O'Connor.)

svn path=/nixpkgs/trunk/; revision=23618
This commit is contained in:
Marco Maggesi 2010-09-03 13:48:35 +00:00
parent 2c424208f9
commit b508e9445b
2 changed files with 8 additions and 0 deletions

View file

@ -18,6 +18,10 @@ stdenv.mkDerivation (rec {
CAT=$(type -tp cat)
sed -e "s@/bin/cat@$CAT@" -i config/auto-aux/sharpbang
'';
postBuild = ''
ensureDir $out/include
ln -sv $out/lib/ocaml/caml $out/include/caml
'';
meta = {
homepage = http://caml.inria.fr/ocaml;

View file

@ -24,6 +24,10 @@ stdenv.mkDerivation rec {
CAT=$(type -tp cat)
sed -e "s@/bin/cat@$CAT@" -i config/auto-aux/sharpbang
'';
postBuild = ''
ensureDir $out/include
ln -sv $out/lib/ocaml/caml $out/include/caml
'';
meta = {
homepage = http://caml.inria.fr/ocaml;