mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 16:53:40 +00:00
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:
parent
2c424208f9
commit
b508e9445b
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user