about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/llvm
diff options
context:
space:
mode:
authorTom Repetti <trepetti@cs.columbia.edu>2022-10-27 13:35:13 -0400
committerVincent Laporte <vbgl@users.noreply.github.com>2022-10-28 13:14:42 +0200
commit3453f5713ad1c79c4ae10671dcaf30241b102249 (patch)
treea7ba755f717f7d828a7f85b065a9109e4fda5a01 /pkgs/development/ocaml-modules/llvm
parent3298100109a8b558d9267ff1fe631a9b6fb25467 (diff)
downloadnixlib-3453f5713ad1c79c4ae10671dcaf30241b102249.tar
nixlib-3453f5713ad1c79c4ae10671dcaf30241b102249.tar.gz
nixlib-3453f5713ad1c79c4ae10671dcaf30241b102249.tar.bz2
nixlib-3453f5713ad1c79c4ae10671dcaf30241b102249.tar.lz
nixlib-3453f5713ad1c79c4ae10671dcaf30241b102249.tar.xz
nixlib-3453f5713ad1c79c4ae10671dcaf30241b102249.tar.zst
nixlib-3453f5713ad1c79c4ae10671dcaf30241b102249.zip
ocamlPackages.llvm: fix CMake location for versions >= 13.0.0
Diffstat (limited to 'pkgs/development/ocaml-modules/llvm')
-rw-r--r--pkgs/development/ocaml-modules/llvm/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/llvm/default.nix b/pkgs/development/ocaml-modules/llvm/default.nix
index 93824894455c..948d326d6594 100644
--- a/pkgs/development/ocaml-modules/llvm/default.nix
+++ b/pkgs/development/ocaml-modules/llvm/default.nix
@@ -14,6 +14,10 @@ stdenv.mkDerivation {
 
   strictDeps = true;
 
+  preConfigure = lib.optionalString (lib.versionAtLeast version "13.0.0") ''
+    cd llvm
+  '';
+
   cmakeFlags = [
     "-DBUILD_SHARED_LIBS=YES" # fixes bytecode builds
     "-DLLVM_OCAML_OUT_OF_TREE=TRUE"