git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.camlidl: export c header and libs.
commit9ffbebfeb0d1e680e7c9fce3f76559ea7d6c7062 authorJörg Thalheim <joerg@thalheim.io> dateThu 15 Jun 2017, 19:37 (9 years ago) parent540f8ee
1 file changed+7−1
pkgs/development/tools/ocaml/camlidl/default.nix+7−1
pkgs/development/tools/ocaml/camlidl/default.nix+7−1
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, makeWrapper, ocaml, ncurses }:
1+{ stdenv, fetchurl, makeWrapper, ocaml, ncurses, writeText }:
22
33let
44 pname = "camlidl";
@@ -36,6 +36,12 @@ stdenv.mkDerivation rec {
3636 ln -s $out/camlidl $out/bin
3737 '';
3838
39+ setupHook = writeText "setupHook.sh" ''
40+ export CAML_LD_LIBRARY_PATH="''${CAML_LD_LIBRARY_PATH}''${CAML_LD_LIBRARY_PATH:+:}''$1/lib/ocaml/${ocaml.version}/site-lib/${name}/"
41+ export NIX_CFLAGS_COMPILE+=" -isystem $1/lib/ocaml/${ocaml.version}/site-lib/camlidl"
42+ export NIX_LDFLAGS+=" -L $1/lib/ocaml/${ocaml.version}/site-lib/camlidl"
43+ '';
44+
3945 meta = {
4046 description = "A stub code generator and COM binding for Objective Caml";
4147 homepage = "${webpage}";