diff options
author | Marco Maggesi <maggesi@math.unifi.it> | 2010-09-03 13:48:35 +0000 |
---|---|---|
committer | Marco Maggesi <maggesi@math.unifi.it> | 2010-09-03 13:48:35 +0000 |
commit | b508e9445b67e58e5251b45cc9fbd18975eb8d90 (patch) | |
tree | b2fdbfd4cd22fea4eb98ed7a189dfdf0cdb7cf9e | |
parent | 2c424208f9cd72b63b720c01ecffe6c664b40f2f (diff) | |
download | nixpkgs-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
-rw-r--r-- | pkgs/development/compilers/ocaml/3.10.0.nix | 4 | ||||
-rw-r--r-- | pkgs/development/compilers/ocaml/3.11.1.nix | 4 |
2 files changed, 8 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; diff --git a/pkgs/development/compilers/ocaml/3.11.1.nix b/pkgs/development/compilers/ocaml/3.11.1.nix index e22db680577..66c8319600f 100644 --- a/pkgs/development/compilers/ocaml/3.11.1.nix +++ b/pkgs/development/compilers/ocaml/3.11.1.nix @@ -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; |