mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-18 01:54:34 +00:00
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
|
||||
pname = "camlidl";
|
||||
@ -36,6 +36,12 @@ stdenv.mkDerivation rec {
|
||||
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 = {
|
||||
description = "A stub code generator and COM binding for Objective Caml";
|
||||
homepage = "${webpage}";
|
||||
|
Loading…
Reference in New Issue
Block a user