summary refs log tree commit diff
path: root/pkgs/development/compilers/ocaml/3.10.0.nix
diff options
context:
space:
mode:
authorMarco Maggesi <maggesi@math.unifi.it>2010-09-03 13:48:35 +0000
committerMarco Maggesi <maggesi@math.unifi.it>2010-09-03 13:48:35 +0000
commitb508e9445b67e58e5251b45cc9fbd18975eb8d90 (patch)
treeb2fdbfd4cd22fea4eb98ed7a189dfdf0cdb7cf9e /pkgs/development/compilers/ocaml/3.10.0.nix
parent2c424208f9cd72b63b720c01ecffe6c664b40f2f (diff)
downloadnixpkgs-b508e9445b67e58e5251b45cc9fbd18975eb8d90.tar
nixpkgs-b508e9445b67e58e5251b45cc9fbd18975eb8d90.tar.gz
nixpkgs-b508e9445b67e58e5251b45cc9fbd18975eb8d90.tar.bz2
nixpkgs-b508e9445b67e58e5251b45cc9fbd18975eb8d90.tar.lz
nixpkgs-b508e9445b67e58e5251b45cc9fbd18975eb8d90.tar.xz
nixpkgs-b508e9445b67e58e5251b45cc9fbd18975eb8d90.tar.zst
nixpkgs-b508e9445b67e58e5251b45cc9fbd18975eb8d90.zip
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
Diffstat (limited to 'pkgs/development/compilers/ocaml/3.10.0.nix')
-rw-r--r--pkgs/development/compilers/ocaml/3.10.0.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ocaml/3.10.0.nix b/pkgs/development/compilers/ocaml/3.10.0.nix
index a77e5fdd0ac..fdd95db5440 100644
--- a/pkgs/development/compilers/ocaml/3.10.0.nix
+++ b/pkgs/development/compilers/ocaml/3.10.0.nix
@@ -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;