summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-09-17 20:55:57 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-09-17 20:58:35 +0200
commit34c59894a6a08518e82c4810f5447a9e8e138b39 (patch)
tree88167b5e179a13a22148da1bdbab68fd7630759c /pkgs/applications
parentfb09fca7b78d49f7e251b67af3482a43b58f1197 (diff)
downloadnixlib-34c59894a6a08518e82c4810f5447a9e8e138b39.tar
nixlib-34c59894a6a08518e82c4810f5447a9e8e138b39.tar.gz
nixlib-34c59894a6a08518e82c4810f5447a9e8e138b39.tar.bz2
nixlib-34c59894a6a08518e82c4810f5447a9e8e138b39.tar.lz
nixlib-34c59894a6a08518e82c4810f5447a9e8e138b39.tar.xz
nixlib-34c59894a6a08518e82c4810f5447a9e8e138b39.tar.zst
nixlib-34c59894a6a08518e82c4810f5447a9e8e138b39.zip
ocaml-mode: fix build for OCaml >= 4.02
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/editors/emacs-modes/ocaml/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/editors/emacs-modes/ocaml/default.nix b/pkgs/applications/editors/emacs-modes/ocaml/default.nix
index 9e4496ff1a48..7ed6355f9815 100644
--- a/pkgs/applications/editors/emacs-modes/ocaml/default.nix
+++ b/pkgs/applications/editors/emacs-modes/ocaml/default.nix
@@ -11,7 +11,8 @@ in stdenv.mkDerivation {
   # a quick configure to get the Makefile generated. Since
   # we do not build the ocaml itself, we don't really
   # need it to support any features.
-  configureFlags = [ "-no-tk" "-no-curses" "-no-pthread" ];
+  configureFlags = (with stdenv.lib; optional (!(versionAtLeast version "4.02")) "-no-tk") ++
+    [ "-no-curses" "-no-pthread" ];
 
   buildInputs = [ emacs ];
   dontBuild = true;