ocamlPackages.camlidl: export c header and libs.
This commit is contained in:
parent
540f8ee7ad
commit
9ffbebfeb0
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, makeWrapper, ocaml, ncurses }:
|
{ stdenv, fetchurl, makeWrapper, ocaml, ncurses, writeText }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "camlidl";
|
pname = "camlidl";
|
||||||
@ -36,6 +36,12 @@ stdenv.mkDerivation rec {
|
|||||||
ln -s $out/camlidl $out/bin
|
ln -s $out/camlidl $out/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
setupHook = writeText "setupHook.sh" ''
|
||||||
|
export CAML_LD_LIBRARY_PATH="''${CAML_LD_LIBRARY_PATH}''${CAML_LD_LIBRARY_PATH:+:}''$1/lib/ocaml/${ocaml.version}/site-lib/${name}/"
|
||||||
|
export NIX_CFLAGS_COMPILE+=" -isystem $1/lib/ocaml/${ocaml.version}/site-lib/camlidl"
|
||||||
|
export NIX_LDFLAGS+=" -L $1/lib/ocaml/${ocaml.version}/site-lib/camlidl"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A stub code generator and COM binding for Objective Caml";
|
description = "A stub code generator and COM binding for Objective Caml";
|
||||||
homepage = "${webpage}";
|
homepage = "${webpage}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user