summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/lambda-term
diff options
context:
space:
mode:
authorPatrick Mahoney <pat@polycrystal.org>2017-04-22 13:36:23 -0500
committerPatrick Mahoney <pat@polycrystal.org>2017-04-22 13:36:23 -0500
commitd27e250627dd2f03e1436410c69b49f6463874ca (patch)
tree96ecd1b5c5db6dda81ee930a4826322dc4e1efb4 /pkgs/development/ocaml-modules/lambda-term
parent02682e509389a6de23a2614da3b43abebf45a4f2 (diff)
downloadnixpkgs-d27e250627dd2f03e1436410c69b49f6463874ca.tar
nixpkgs-d27e250627dd2f03e1436410c69b49f6463874ca.tar.gz
nixpkgs-d27e250627dd2f03e1436410c69b49f6463874ca.tar.bz2
nixpkgs-d27e250627dd2f03e1436410c69b49f6463874ca.tar.lz
nixpkgs-d27e250627dd2f03e1436410c69b49f6463874ca.tar.xz
nixpkgs-d27e250627dd2f03e1436410c69b49f6463874ca.tar.zst
nixpkgs-d27e250627dd2f03e1436410c69b49f6463874ca.zip
ocamlPackages.lambdaTerm: use buildOcaml
This adds the shared objects setup hook to prepare
CAML_LD_LIBRARY_PATH.
Diffstat (limited to 'pkgs/development/ocaml-modules/lambda-term')
-rw-r--r--pkgs/development/ocaml-modules/lambda-term/default.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/ocaml-modules/lambda-term/default.nix b/pkgs/development/ocaml-modules/lambda-term/default.nix
index f66773d426a..86e4ebccbae 100644
--- a/pkgs/development/ocaml-modules/lambda-term/default.nix
+++ b/pkgs/development/ocaml-modules/lambda-term/default.nix
@@ -1,10 +1,10 @@
-{ stdenv, fetchurl, libev, ocaml, findlib, ocamlbuild, ocaml_lwt, ocaml_react, zed }:
+{ stdenv, buildOcaml, fetchurl, libev, ocaml, findlib, ocamlbuild, ocaml_lwt, ocaml_react, zed }:
 
 assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01";
 
-stdenv.mkDerivation rec {
+buildOcaml rec {
   version = "1.10";
-  name = "lambda-term-${version}";
+  name = "lambda-term";
 
   src = fetchurl {
     url = "https://github.com/diml/lambda-term/archive/${version}.tar.gz";
@@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
 
   createFindlibDestdir = true;
 
+  hasSharedObjects = true;
+
   meta = { description = "Terminal manipulation library for OCaml";
     longDescription = ''
     Lambda-term is a cross-platform library for